Esempio n. 1
0
 public void Generate_Generic2()
 {
     DefaultSchemaIdFactory.Generate(typeof(Dictionary <string, Foo>))
     .ShouldBe("dictionaryOfStringAndFoo");
 }
Esempio n. 2
0
 public void Generate_Generic1()
 {
     DefaultSchemaIdFactory.Generate(typeof(List <Foo>))
     .ShouldBe("listOfFoo");
 }
 public void Generate_RemovesInvalidCharacters()
 {
     DefaultSchemaIdFactory.Generate(typeof(TypeWithInvalidCharacters))
     .ShouldBe("thisisinvalid");
 }
Esempio n. 4
0
 public void Generate_NestedType_ConcatenatesTypeNames()
 {
     DefaultSchemaIdFactory.Generate(typeof(OuterType.InnerType))
     .ShouldBe("outerTypeInnerType");
 }
 public void Generate_UsesTitleFromJsonObject()
 {
     DefaultSchemaIdFactory.Generate(typeof(TypeWithJsonObjectAttribute))
     .ShouldBe("jsonObjectTitle");
 }