Exemplo n.º 1
0
        static void Main(string[] args)
        {
            NSApplication.Init();

            Test.EnsureLinker(true);

#pragma warning disable 618
            var host = Syscall.GetHostName();
#pragma warning restore 618
            Test.Log.WriteLine("{0}\t{1} {2}", !String.IsNullOrEmpty(host) ? "[PASS]" : "[FAIL]", "Syscall.GetHostName returned", host);

            string path    = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
            string dylib   = Path.Combine(path, "libMonoPosixHelper.dylib");
            bool   bundled = File.Exists(dylib);
            Test.Log.WriteLine("{0}\t{1} : {2}", !bundled ? "[PASS]" : "[FAIL]", "MonoPosixHelper not present in bundle", dylib);

            Test.Terminate();
        }