Пример #1
0
        public void ProcessInfo_TestEqualishWorksAlwaysReturnsFalseForDifferentProcesses()
        {
            var info1 = new ProcessInfo("process.exe", "TestDocument.doc *");
            var info2 = new ProcessInfo("process2.exe", "TestDocument.doc");

            info1.IsEqualishTo(info2).Should().BeFalse("because they're different processes");
        }
Пример #2
0
        public void ProcessInfo_TestEqualishWorksWithUnsavedDocumentMarkers()
        {
            var processName = "process.exe";
            var info1 = new ProcessInfo(processName, "TestDocument.doc *");
            var info2 = new ProcessInfo(processName, "TestDocument.doc");

            info1.IsEqualishTo(info2).Should().BeTrue("because the process name is the same and the window title is basically the same!");
        }