public void PropertyContext_RemoveProperty_Found_Test() { var target = new PropertyContext(null); target.SetProperty("Test", 1); const bool expected = true; var actual = target.RemoveProperty("Test"); actual.Should().Be(expected); }
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(); }