src/GenFx.Components.Tests/BinaryStringEntityTest.cs
/// <summary>
/// Tests that an exception is thrown when attempting to access state when the entity is not initialized.
/// </summary>
Tests that an exception is thrown when attempting to access state when the entity is not initialized.
Tests that an exception is thrown when attempting to access state when the entity is not initialized .
[Fact]
        public void BinaryStringEntity_Uninitialized()
        {
            BinaryStringEntity entity = new BinaryStringEntity();
            Assert.Throws<InvalidOperationException>(() => { entity[0] = true; });
            Assert.Throws<InvalidOperationException>(() =>
            {
                BinaryStringEntity entity2 = new BinaryStringEntity();
                entity.CopyTo(entity2);
            });
        }
[ Fact ] public void BinaryStringEntity_Uninitialized ( ) { BinaryStringEntity entity = new BinaryStringEntity ( ) ; Assert . Throws < InvalidOperationException > ( ( ) => { entity [ 0 ] = true ; } ) ; Assert . Throws < InvalidOperationException > ( ( ) => { BinaryStringEntity entity2 = new BinaryStringEntity ( ) ; entity . CopyTo ( entity2 ) ; } ) ; }
Tests that an exception is thrown when attempting to access state when the entity is not initialized.
Tests that an exception is thrown when attempting to access state when the entity is not initialized .