public void CompareInEqualityFalse() { var fakeProfile1 = FitnessProfile.FakeFactory("*****@*****.**"); var fakeProfile2 = FitnessProfile.FakeFactory("*****@*****.**"); Assert.That((fakeProfile1 != fakeProfile2), Is.False); }
public void CompareInEqualityReturnsTrue() { var fakeProfile1 = FitnessProfile.FakeFactory("*****@*****.**"); var fakeProfile2 = FitnessProfile.FakeFactory("*****@*****.**");//different profiles Assert.That(fakeProfile1, Is.Not.EqualTo(fakeProfile2)); Assert.That((fakeProfile1 != fakeProfile2)); }
public void CompareEquality_ReturnsTrue() { var fakeProfile1 = FitnessProfile.FakeFactory("*****@*****.**"); var fakeProfile2 = FitnessProfile.FakeFactory("*****@*****.**"); Assert.That(fakeProfile1, Is.EqualTo(fakeProfile2)); Assert.That(fakeProfile1.Equals(fakeProfile2), Is.True); Assert.That((fakeProfile1 == fakeProfile2)); }