-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed some edge cases with unit tests following latest changes
- Loading branch information
1 parent
35b243a
commit 0106ca2
Showing
2 changed files
with
25 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,26 @@ | ||
using FacepunchCommitsMonitor; | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
using static System.Windows.Forms.AxHost; | ||
|
||
namespace FacepunchCommitsMonitorTests; | ||
|
||
[TestClass] | ||
public class MonitorTests | ||
namespace FacepunchCommitsMonitorTests | ||
{ | ||
[TestMethod] | ||
public void SelectGameCategoryTest() | ||
{ | ||
var gmod = Monitor.SelectGameCategory("GarrysMod2"); | ||
var rust = Monitor.SelectGameCategory("Rustify"); | ||
var sbox = Monitor.SelectGameCategory("SboxUnreal"); | ||
[TestClass] | ||
public class MonitorTests | ||
{ | ||
[TestMethod] | ||
public void SelectGameCategoryTest() | ||
{ | ||
Form.GetRepositories()["Garry's Mod"] = true; | ||
Form.GetRepositories()["Rust"] = true; | ||
Form.GetRepositories()["Sandbox"] = true; | ||
|
||
var gmod = Monitor.SelectGameCategory("GarrysMod2"); | ||
var rust = Monitor.SelectGameCategory("Rustify"); | ||
var sbox = Monitor.SelectGameCategory("SboxUnreal"); | ||
|
||
Assert.AreEqual("Garry's Mod", gmod); | ||
Assert.AreEqual("Rust", rust); | ||
Assert.AreEqual("S&Box", sbox); | ||
} | ||
Assert.AreEqual("Garry's Mod", gmod); | ||
Assert.AreEqual("Rust", rust); | ||
Assert.AreEqual("S&Box", sbox); | ||
} | ||
} | ||
} |