public static void TestDay04Part1() { NUnit.Framework.Assert.AreEqual(true, Day04Solution.IsRealRoom("aaaaa-bbb-z-y-x-123[abxyz]")); NUnit.Framework.Assert.AreEqual(true, Day04Solution.IsRealRoom("a-b-c-d-e-f-g-h-987[abcde]")); NUnit.Framework.Assert.AreEqual(true, Day04Solution.IsRealRoom("not-a-real-room-404[oarel]")); NUnit.Framework.Assert.AreEqual(false, Day04Solution.IsRealRoom("totally-real-room-200[decoy]")); }
public static void TestDay04Part2() { NUnit.Framework.Assert.AreEqual("very encrypted name", Day04Solution.DecryptRoomName("qzmt-zixmtkozy-ivhz-343")); }