예제 #1
0
 public void InvalidCombinationsShouldThrowAnException()
 {
     Assert.Throws <NotImplementedException>(() => PrimitiveDataTypeExampleGenerator.GenerateExampleValueByType("test", null));
 }
예제 #2
0
        public void ValidCombinationsShouldReturnValidValue(string type, string format, string expected)
        {
            string example = PrimitiveDataTypeExampleGenerator.GenerateExampleValueByType(type, format);

            Assert.AreEqual(expected, example);
        }