public void TestEqualsVariantDifferent() { var type = new TypeStub("Hello", "Demo.Hello"); var p1 = new Parameter(ParameterVariant.In, type); var p2 = new Parameter(ParameterVariant.Params, type); Assert.IsFalse(p1.Equals(p2)); }
public void TestEqualsAllSame() { var type = new TypeStub("Hello", "Demo.Hello"); var p1 = new Parameter(ParameterVariant.In, type); var p2 = new Parameter(ParameterVariant.In, type); Assert.IsTrue(p1.Equals(p2)); }
public void TestEqualsWrongType() { var p1 = new Parameter(ParameterVariant.In, new TypeStub("Hello", "Sample.Hello")); Assert.IsFalse(p1.Equals(27)); }
public void TestEqualsTypeDifferent() { var p1 = new Parameter(ParameterVariant.In, new TypeStub("Hello", "Sample.Hello")); var p2 = new Parameter(ParameterVariant.In, new TypeStub("World", "Sample.World")); Assert.IsFalse(p1.Equals(p2)); }
public void TestEqualsNull() { var p1 = new Parameter(ParameterVariant.In, new TypeStub("Hello", "Demo.Hello")); Assert.IsFalse(p1.Equals(null)); }