Ejemplo n.º 1
0
 public void Test_SysUtils_IsUnicodeEncoding()
 {
     Assert.IsTrue(SysUtils.IsUnicodeEncoding(Encoding.UTF8));
     Assert.IsFalse(SysUtils.IsUnicodeEncoding(Encoding.ASCII));
 }
Ejemplo n.º 2
0
        public void Test_SysUtils_ImplementsInterface()
        {
            Assert.IsTrue(SysUtils.ImplementsInterface(typeof(LangManager), typeof(ILangMan)));

            Assert.IsFalse(SysUtils.ImplementsInterface(typeof(LangManager), typeof(INamesTable)));
        }
Ejemplo n.º 3
0
        public static string GetAppCopyright()
        {
            var attr = SysUtils.GetAssemblyAttribute <AssemblyCopyrightAttribute>(GetAssembly());

            return((attr == null) ? string.Empty : attr.Copyright);
        }