src/GenFx.Components.Tests/ListEntityTests.cs
/// <summary>
/// Tests that an exception is thrown when attempting to access state on an uninitialized entity.
/// </summary>
Tests that an exception is thrown when attempting to access state on an uninitialized entity.
Tests that an exception is thrown when attempting to access state on an uninitialized entity .
[Fact]
        public void ListEntity_Uninitialized()
        {
            TestListEntity<int> entity = new TestListEntity<int>();
            Assert.Throws<InvalidOperationException>(() => { entity[0] = 1; });
            Assert.Throws<InvalidOperationException>(() =>
            {
                TestListEntity<int> entity2 = new TestListEntity<int>();
                entity.CopyTo(entity2);
            });
        }
[ Fact ] public void ListEntity_Uninitialized ( ) { TestListEntity < int > entity = new TestListEntity < int > ( ) ; Assert . Throws < InvalidOperationException > ( ( ) => { entity [ 0 ] = 1 ; } ) ; Assert . Throws < InvalidOperationException > ( ( ) => { TestListEntity < int > entity2 = new TestListEntity < int > ( ) ; entity . CopyTo ( entity2 ) ; } ) ; }
Tests that an exception is thrown when attempting to access state on an uninitialized entity.
Tests that an exception is thrown when attempting to access state on an uninitialized entity .