public bool Equals(DiagnosticValueSource other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Equals(other.Source, Source) && Equals(other.Value, Value)); }
public bool Equals(DiagnosticValueSource other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return Equals(other.Source, Source) && Equals(other.Value, Value); }
public void create_DiagnosticValueSource_with_empty_string() { var source = new DiagnosticValueSource("something", string.Empty); source.Value.ShouldEqual("EMPTY"); }
public void create_DiagnosticValueSource_with_a_null() { var source = new DiagnosticValueSource("something", null); source.Value.ShouldEqual("NULL"); }
public void create_DiagnosticValueSource_with_non_null_non_empty() { var source = new DiagnosticValueSource("something", 1); source.Value.ShouldEqual("1"); }