コード例 #1
0
        internal void FromString(IntegerConverters sut, IFixture fixture)
        {
            // arrange
            var expected     = fixture.Create <int>();
            var doubleString = expected.ToString(CultureInfo.InvariantCulture);
            // act
            var actual = sut.Convert(doubleString, CultureInfo.InvariantCulture);

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