Beispiel #1
0
        internal void FromString(DoubleConverters sut, IFixture fixture)
        {
            // arrange
            var expected     = fixture.Create <double>();
            var doubleString = expected.ToString("r", CultureInfo.InvariantCulture);
            // act
            var actual = sut.Convert(doubleString, CultureInfo.InvariantCulture);

            // assert
            Assert.Equal(expected, actual);
        }
Beispiel #2
0
 internal void FromStringArray(DoubleConverters sut)
 {
     Assert.Throws <NotSupportedException>(() => sut.Convert(true, CultureInfo.InvariantCulture));
 }