コード例 #1
0
        public void Properties_Sets_And_Gets_Data_Properties_String()
        {
            var fx = new DataPropertiesElementFx(Guid.NewGuid());
            fx.Properties = "blah";

            Assert.NotNull(fx.Properties);
            Assert.Equal("blah", fx.Properties);
        }
コード例 #2
0
 public void Reset_Sets_IsCancelled_To_False()
 {
     var fx = new DataPropertiesElementFx(Guid.NewGuid());
     fx.Reset();
     //Assert
     Assert.Null(fx.Properties);
     Assert.False(fx.IsCancelled);
     Assert.Equal(FxStatus.UnInitialized, fx.Status);
 }
コード例 #3
0
        public void Cancel_Sets_Properties_To_Null_And_Status_To_UnInitialized()
        {
            var fx = new DataPropertiesElementFx(Guid.NewGuid());
            //Act
            fx.Cancel();

            //Assert
            Assert.Null(fx.Properties);
            Assert.False(fx.IsCancelled);
            Assert.Equal(FxStatus.UnInitialized, fx.Status);
        }