コード例 #1
0
        public void TestMethod1()
        {
            //arrange
            Settings.ConstEnumsEnabled = true;

            var nsg = new NamespaceAssemblyReader(typeof(Harley <>).Assembly);
            //act
            var s = nsg.GenerateTypingsString();


            //assert
            Assert.IsNotNull(s);
        }
        public void TestMethod1()
        {
            //arrange
            Settings.ConstEnumsEnabled = true;
           
            var nsg = new NamespaceAssemblyReader(typeof (Harley<>).Assembly);
            //act
            var s = nsg.GenerateTypingsString();


            //assert
            Assert.IsNotNull(s);
        }
コード例 #3
0
        public void Test_IgnoreInterface()
        {
            //arrange
            Settings.ConstEnumsEnabled = true;
            Settings.IgnoreInterfaces.Add("IShouldNotShowUp");

            var nsg = new NamespaceAssemblyReader(typeof(Harley <>).Assembly);
            //act
            var s = nsg.GenerateTypingsString();


            //assert
            Assert.IsTrue(!s.Contains("IShouldNotShowUp"));
        }
        public void Test_IgnoreInterface()
        {
            //arrange
            Settings.ConstEnumsEnabled = true;
            Settings.IgnoreInterfaces.Add("IShouldNotShowUp");

            var nsg = new NamespaceAssemblyReader(typeof(Harley<>).Assembly);
            //act
            var s = nsg.GenerateTypingsString();


            //assert
            Assert.IsTrue(!s.Contains("IShouldNotShowUp"));
        }