Example #1
0
            public void ShouldProvideFormattedWithFormatterValueString(string format, CultureInfo cultureInfo)
            {
                // arrange
                var targetId        = Faker.Random.Int();
                var stronglyTypedId = new IntFor <Order>(targetId);

                // act
                var providedValue = stronglyTypedId.ToString(format, cultureInfo);

                // assert
                providedValue.Should().Be(targetId.ToString(format, cultureInfo));
            }
Example #2
0
            public void ShouldProvideValueString()
            {
                // arrange
                var targetId        = Faker.Random.Int();
                var stronglyTypedId = new IntFor <Order>(targetId);

                // act
                var providedValue = stronglyTypedId.ToString();

                // assert
                providedValue.Should().Be(targetId.ToString());
            }