コード例 #1
0
        void REPL(string path)
        {
            var repl        = Path.Combine(path, "repl");
            var failed_repl = new List <string> ();

            foreach (var file in Directory.GetFiles(repl, "*.dll"))
            {
                var aname = Path.GetFileNameWithoutExtension(file);
                switch (aname)
                {
                // sub-list that are SDK assemblies
                case "mscorlib":
                case "System":
                case "System.Core":
                case "System.Xml":
                case "Mono.CSharp":
                    if (!ProfilePoker.IsWellKnownSdk(aname))
                    {
                        failed_repl.Add(aname);
                    }
                    break;

                default:
                    failed_repl.Add(aname);
                    break;
                }
            }
            CollectionAssert.IsEmpty(failed_repl, "Repl");
        }
コード例 #2
0
        void Facades(string path)
        {
            var facades = Path.Combine(path, "Facades");

            foreach (var file in Directory.GetFiles(facades, "*.dll"))
            {
                var aname = Path.GetFileNameWithoutExtension(file);
                Assert.IsTrue(ProfilePoker.IsWellKnownSdk(aname), aname);
            }
        }
コード例 #3
0
ファイル: SdkTest.cs プロジェクト: songurov/xamarin-macios
        void BCL(string path)
        {
            var failed_bcl = new List <string> ();

            foreach (var file in Directory.GetFiles(path, "*.dll"))
            {
                var aname = Path.GetFileNameWithoutExtension(file);
                switch (aname)
                {
                case "FSharp.Core":
                case "I18N":
                case "I18N.CJK":
                case "I18N.MidEast":
                case "I18N.Other":
                case "I18N.Rare":
                case "I18N.West":
                    // need to be sure they are link-capable to include them into MobileProfile
                    break;

                case "MonoTouch.Dialog-1":
                case "MonoTouch.NUnitLite":
                case "monotouch":
                case "Xamarin.iOS":
                case "Xamarin.TVOS":
                case "Xamarin.WatchOS":
                    // product assembly (use a different check than SDK/BCL)
                    break;

                case "Newtonsoft.Json":
                case "Xamarin.iOS.Tasks":
                case "Xamarin.iOS.Tasks.Core":
                case "Xamarin.ObjcBinding.Tasks":
                case "Xamarin.MacDev":
                case "Xamarin.MacDev.Tasks":
                case "Xamarin.MacDev.Tasks.Core":
                case "Xamarin.Analysis.Tasks":
                    // other stuff that is not part of the SDK but shipped in the same 2.1 directory
                    if (path != ClassicPath)
                    {
                        failed_bcl.Add(aname);
                    }
                    break;

                default:
                    if (!ProfilePoker.IsWellKnownSdk(aname))
                    {
                        failed_bcl.Add(aname);
                    }
                    break;
                }
            }
            CollectionAssert.IsEmpty(failed_bcl, "BCL");
        }
コード例 #4
0
        void Facades(string path)
        {
            var facades        = Path.Combine(path, "Facades");
            var failed_facades = new List <string> ();

            foreach (var file in Directory.GetFiles(facades, "*.dll"))
            {
                var aname = Path.GetFileNameWithoutExtension(file);
                if (!ProfilePoker.IsWellKnownSdk(aname))
                {
                    failed_facades.Add(aname);
                }
            }
            CollectionAssert.IsEmpty(failed_facades, "Facades");
        }
コード例 #5
0
        void REPL(string path)
        {
            var repl = Path.Combine(path, "repl");

            foreach (var file in Directory.GetFiles(repl, "*.dll"))
            {
                var aname = Path.GetFileNameWithoutExtension(file);
                switch (aname)
                {
                // sub-list that are SDK assemblies
                case "mscorlib":
                case "System":
                case "System.Core":
                case "System.Xml":
                case "Mono.CSharp":
                    Assert.IsTrue(ProfilePoker.IsWellKnownSdk(aname), aname);
                    break;

                default:
                    Assert.Fail(aname);
                    break;
                }
            }
        }