public void ThrowsArgumentException() { var instance = new InformationInterfaceGenerator(); var cgp = new MockClassGenerationParameters(TestInputs.MainNamespaceName, TestInputs.SubNamespace, null, null, TestInputs.PropertiesDefault, null, null, 2010, null, null); var classes = new List<IClassGenerationParameters> { cgp }; var result = instance.Generate(classes); this.OutputHelper.WriteLine(result); Assert.True(result.StartsWith("#error")); Assert.True(result.Contains("ArgumentException")); }
public void ThrowsArgumentNullException() { var instance = new InformationInterfaceGenerator(); var result = instance.Generate(null); this.OutputHelper.WriteLine(result); Assert.True(result.StartsWith("#error")); Assert.True(result.Contains("ArgumentNullException")); }
public void ReturnsInterfaceCode() { var instance = new InformationInterfaceGenerator(); var classes = new List<IClassGenerationParameters> { new Cgp() }; var result = instance.Generate(classes); Assert.NotNull(result); this.OutputHelper.WriteLine(result); }