コード例 #1
0
            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);
            }
コード例 #2
0
            public void ThrowsExceptionCgpNull()
            {
                var instance = new Difference();

                var ex = Assert.Throws<ArgumentNullException>(() => instance.Generate(null));

                Assert.Equal("cgp", ex.ParamName);
            }