public void Equals_CorrectlyHandlesComparisonToDifferentType() { var combination = new IncludeCombination(IncludeType.Js, new[] { "foo.js" }, "alert('foo');", DateTime.UtcNow, new JsTypeElement()); var result = combination.Equals(new string[1]); Assert.IsFalse(result); }
public void Equals_CorrectlyHandlesNullObject() { var combination = new IncludeCombination(IncludeType.Js, new[] { "foo.js" }, "alert('foo');", DateTime.UtcNow, new JsTypeElement()); var result = combination.Equals((object)null); Assert.IsFalse(result); }
public void Equals_CorrectlyHandlesNullObject() { var combination = new IncludeCombination(IncludeType.Js, new[] { "foo.js" }, "alert('foo');", DateTime.UtcNow, new JsTypeElement()); var result = combination.Equals((object) null); Assert.IsFalse(result); }
public void Equals_CorrectlyComparesTwoCombinations(IncludeCombination a, IncludeCombination b, bool expected) { var result = a.Equals(b); Assert.Equal(expected, result); }
public void Equals_CorrectlyComparesCombinationToObject(IncludeCombination a, object b, bool expected) { var result = a.Equals(b); Assert.Equal(expected, result); }
public void Equals_CorrectlyHandlesNullCombination() { var combination = new IncludeCombination(IncludeType.Js, new[] { "foo.js" }, "alert('foo');", Clock.UtcNow, new JsTypeElement()); var result = combination.Equals(null); Assert.False(result); }