public void CompareFiles_DifferentFiles_ReturnsFalse() { string f1 = Path.GetTempFileName(); string f2 = Path.GetTempFileName(); File.WriteAllText(f1, "Heyo"); File.WriteAllText(f2, "-"); Assert.IsFalse(UtilStatic.CompareFiles(f1, f2)); }
public void CompareFiles_EqualFiles_ReturnsTrue() { string f1 = Path.GetTempFileName(); string f2 = Path.GetTempFileName(); File.WriteAllText(f1, "TestLorem IpsumThats SomeCrap"); File.WriteAllText(f2, "TestLorem IpsumThats SomeCrap"); Assert.IsTrue(UtilStatic.CompareFiles(f1, f2)); }
public void AssembliesHaveNoAsyncVoids() { UtilStatic.AssertNoAsyncVoidMethods(GetType().Assembly); }