Esempio n. 1
0
        public void Next_with_range_always_returns_the_same_value()
        {
            var expected = 12;
            var sut      = TestRandom <int> .Create(expected);

            Assert.Equal(expected, sut.Next(20.ToRange(50)));
        }
Esempio n. 2
0
        public void Next_always_returns_the_same_value()
        {
            var expected = "testValue";
            var sut      = TestRandom <string> .Create(expected);

            Assert.Equal(expected, sut.Next());
            Assert.Equal(expected, sut.Next(null));
        }
Esempio n. 3
0
 public void Implements_IRandom_interface()
 => AssertExtensions.ImplementsInterface <IRandom <string> >(
     TestRandom <string> .Create("testValue")
     );