public void PropertyContext_IsVolatile_Found_Test() { var target = new PropertyContext(null); target.SetProperty("Test", 1, PropertyTypeOptions.Volatile); const bool expected = true; var actual = target.IsVolatile("Test"); actual.Should().Be(expected); }
public void PropertyContext_IsVolatile_NotFound_Test() { var target = new PropertyContext(null); target.SetProperty("Test", 1); const bool expected = false; var actual = target.IsVolatile("Tester"); actual.Should().Be(expected); }
public void IsVolatile_False_Fact() { var fake = new FakeEntity(1, "Fact"); var ctx = new PropertyContext(fake); ctx.SetProperty(FactEnum.Fact1, "Nothing"); var result = ctx.IsVolatile("Fact1"); result.Should().BeFalse(); }