public void Test_SysUtils_IsUnicodeEncoding() { Assert.IsTrue(SysUtils.IsUnicodeEncoding(Encoding.UTF8)); Assert.IsFalse(SysUtils.IsUnicodeEncoding(Encoding.ASCII)); }
public void Test_SysUtils_ImplementsInterface() { Assert.IsTrue(SysUtils.ImplementsInterface(typeof(LangManager), typeof(ILangMan))); Assert.IsFalse(SysUtils.ImplementsInterface(typeof(LangManager), typeof(INamesTable))); }
public static string GetAppCopyright() { var attr = SysUtils.GetAssemblyAttribute <AssemblyCopyrightAttribute>(GetAssembly()); return((attr == null) ? string.Empty : attr.Copyright); }