public void IsOverridden_WithNullabeTAsObject() { int?x = 1; Assert.True(OverrideConvention.IsOverridden((object)x)); int?y = null; Assert.False(OverrideConvention.IsOverridden((object)y)); }
public void IsOverridden_WithObject() { Uri x = new Uri("http://google.com"); Assert.True(OverrideConvention.IsOverridden(x)); Uri y = null; Assert.False(OverrideConvention.IsOverridden(y)); }
public void IsOverridden_WithNullabeT() { int?x = 1; Assert.True(OverrideConvention.IsOverridden(x)); int?y = null; Assert.False(OverrideConvention.IsOverridden(y)); }
public void IsOverridden_WithStrings() { string x = "http://google.com"; Assert.True(OverrideConvention.IsOverridden(x)); string y = null; Assert.False(OverrideConvention.IsOverridden(y)); string y1 = ""; Assert.False(OverrideConvention.IsOverridden(y1)); string y2 = " "; Assert.False(OverrideConvention.IsOverridden(y2)); }