ChangeTracking.Tests.IChangeTrackableCollectionTests.When_Calling_AsTrackable_On_Collection_Already_Tracking_Should_Throw C# (CSharp) 메소드

When_Calling_AsTrackable_On_Collection_Already_Tracking_Should_Throw() 개인적인 메소드

        public void When_Calling_AsTrackable_On_Collection_Already_Tracking_Should_Throw()
        {
            var orders = Helper.GetOrdersIList();

            orders[0] = orders[0].AsTrackable();
            orders[0].CustomerNumber = "Test1";

            orders.Invoking(list => list.AsTrackable()).ShouldThrow<InvalidOperationException>();
        }
IChangeTrackableCollectionTests