ChangeTracking.Tests.IChangeTrackableTests.When_Not_AsTrackable_CastToIChangeTrackable_Should_Throw_InvalidCastException C# (CSharp) Method

When_Not_AsTrackable_CastToIChangeTrackable_Should_Throw_InvalidCastException() private method

        public void When_Not_AsTrackable_CastToIChangeTrackable_Should_Throw_InvalidCastException()
        {
            var order = Helper.GetOrder();

            order.Invoking(o => o.CastToIChangeTrackable()).ShouldThrow<InvalidCastException>();
        }
IChangeTrackableTests