public void ThrowsExceptionDifferenceClassNameNull() { var instance = new Difference(); var cgp = new MockClassGenerationParameters(MainNamespaceName, SubNamespace, null, null, TestInputs.PropertiesDefault, null, null, 2010, null, null); var ex = Assert.Throws<ArgumentException>(() => instance.Generate(cgp)); Assert.Equal("cgp", ex.ParamName); }
public void ThrowsExceptionCgpNull() { var instance = new Difference(); var ex = Assert.Throws<ArgumentNullException>(() => instance.Generate(null)); Assert.Equal("cgp", ex.ParamName); }