public void SetIfNotNullTest() { var dict = new Dictionary <string, string>(); dict.SetIfNotNull("a", "b"); dict.Keys.ShouldNumber(1); }
public void SetIfNotNullTestSecondNull() { var dict = new Dictionary <string, string>(); dict.SetIfNotNull("a", null); dict.Keys.ShouldNumber(0); }
public void SetIfNotNullTestFirstNull() { var dict = new Dictionary <string, int>(); dict.SetIfNotNull(null, 1); dict.Keys.ShouldNumber(0); }
public void SetIfNotNullTestSecondNull() { var dict = new Dictionary<string, string>(); dict.SetIfNotNull("a", null); dict.Keys.ShouldNumber(0); }
public void SetIfNotNullTestFirstNull() { var dict = new Dictionary<string, int>(); dict.SetIfNotNull(null, 1); dict.Keys.ShouldNumber(0); }
public void SetIfNotNullTest() { var dict = new Dictionary<string, string>(); dict.SetIfNotNull("a", "b"); dict.Keys.ShouldNumber(1); }