public static void SchemaToNamespace_GivenNullSchema_ReturnsNull() { var nameTranslator = new CamelCaseNameTranslator(); var testName = new Identifier("test"); var result = nameTranslator.SchemaToNamespace(testName); Assert.That(result, Is.Null); }
public static void SchemaToNamespace_GivenPascalCasedSchemaName_ReturnsCamelCasedText() { var nameTranslator = new CamelCaseNameTranslator(); var testName = new Identifier("FirstSecond", "test"); const string expected = "firstSecond"; var result = nameTranslator.SchemaToNamespace(testName); Assert.That(result, Is.EqualTo(expected)); }
public static void SchemaToNamespace_GivenNullName_ThrowsArgumentNullException() { var nameTranslator = new CamelCaseNameTranslator(); Assert.That(() => nameTranslator.SchemaToNamespace(null), Throws.ArgumentNullException); }