public void DumpCurrentAPI()
        {
            var assembly = typeof(Schema2.ModelRoot).Assembly;

            var API = DumpAssemblyAPI.DumpAPI(assembly).ToList();

            foreach (var l in API)
            {
                TestContext.WriteLine(l);
            }
        }
Beispiel #2
0
        public void DumpToolkitAPI()
        {
            TestContext.CurrentContext.AttachShowDirLink();

            var assembly = typeof(Schema2.Toolkit).Assembly;

            var API = DumpAssemblyAPI.GetAssemblySignature(assembly).OrderBy(item => item).ToArray();

            TestContext.CurrentContext.AttachText($"API.Toolkit.{Schema2.Asset.AssemblyInformationalVersion}.txt", API);

            _CheckBackwardsCompatibility("API.Toolkit.1.0.0-alpha0011.txt", API);
        }
Beispiel #3
0
        public void DumpTestAPI()
        {
            var type = typeof(TestClass);

            var API = DumpAssemblyAPI.GetTypeSignature(type.GetTypeInfo()).OrderBy(item => item).ToArray();

            AttachmentInfo.From("TestAPI.txt").WriteTextLines(API);

            foreach (var l in API)
            {
                TestContext.WriteLine(l);
            }
        }
Beispiel #4
0
        public void DumpCoreAPI()
        {
            TestContext.CurrentContext.AttachShowDirLink();

            var assembly = typeof(Schema2.ModelRoot).Assembly;

            var API = DumpAssemblyAPI.GetAssemblySignature(assembly).OrderBy(item => item).ToArray();

            TestContext.CurrentContext.AttachText($"API.Core.{Schema2.Asset.AssemblyInformationalVersion}.txt", API);

            var r = _CheckBackwardsCompatibility("API.Core.1.0.0-alpha0006.txt", API);

            Assert.IsTrue(r);
        }
Beispiel #5
0
        public void DumpToolkitAPI()
        {
            var assembly = typeof(Schema2.Toolkit).Assembly;

            var API = DumpAssemblyAPI
                      .GetAssemblySignature(assembly)
                      .OrderBy(item => item)
                      .ToArray();

            AttachmentInfo
            .From($"API.Toolkit.{Schema2.Asset.AssemblyInformationalVersion}.txt")
            .WriteTextLines(API);

            _CheckBackwardsCompatibility("API.Toolkit.1.0.0-alpha0011.txt", API);
        }
Beispiel #6
0
        public void DumpTestAPI()
        {
            TestContext.CurrentContext.AttachShowDirLink();

            var type = typeof(TestClass);

            var API = DumpAssemblyAPI.GetTypeSignature(type.GetTypeInfo()).OrderBy(item => item).ToArray();

            TestContext.CurrentContext.AttachText("TestAPI.txt", API);

            foreach (var l in API)
            {
                TestContext.WriteLine(l);
            }
        }