public void RemoveProperty_Fact() { var fake = new FakeEntity(1, "Fact"); var ctx = new PropertyContext(fake); ctx.SetProperty(FactEnum.Fact1, "Nothing"); var result = ctx.HasProperty("Fact1"); result.Should().BeTrue(); ctx.RemoveProperty("Fact1"); result = ctx.HasProperty("Fact1"); result.Should().BeFalse(); }
public void PropertyContext_HasProperty_Test() { var target = new PropertyContext(null); target.SetProperty("Test", new object()); const bool expected = true; var actual = target.HasProperty("Test"); actual.Should().Be(expected); }