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))); }
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)); }
public void Implements_IRandom_interface() => AssertExtensions.ImplementsInterface <IRandom <string> >( TestRandom <string> .Create("testValue") );