public void ExistsWrongTest(string key, string value) { // Align var facts = new FactsBase(); // Act var resultOfAdd = facts.Add("test_key_1", "test_value_1"); var actual = facts.Exists(key, value); // Assert Assert.True(resultOfAdd); Assert.False(actual); }
public void ExistsTest() { // Align var facts = new FactsBase(); var today = DateTime.Today; // Act var resultOfAdd = facts.Add(today.DayOfYear.ToString(), today.ToString()); var actual = facts.Exists(today.DayOfYear.ToString(), today.ToString()); // Assert Assert.True(resultOfAdd); Assert.True(actual); }