Beispiel #1
0
        public void Clients_DoNotHaveToCareAboutNulls()
        {
            var subject = Cmp <OperatorsOnly> .FromOperators();

            Assert.That(subject.Compare(null, null), Is.EqualTo(0));
            Assert.That(subject.Compare(new OperatorsOnly(1), null), Is.GreaterThan(0));
            Assert.That(subject.Compare(null, new OperatorsOnly(1)), Is.LessThan(0));
        }