コード例 #1
0
        public void ShouldReturnValue()
        {
            var carFinder = new StartingZeroCarFinder();
            var result    = carFinder.Find(10);

            Assert.That(() => result != 0);
        }
コード例 #2
0
        public void ShouldReturnDifferentValuesOnCallingMultipleTimes()
        {
            var carFinder    = new StartingZeroCarFinder();
            var firstResult  = carFinder.Find(10);
            var secondResult = carFinder.Find(1);

            Assert.That(() => firstResult != secondResult);
        }