public void CacheCustomUrl() { SteamGroup.ClearCache(); var group1 = SteamGroup.Create("valve", false, false); Assert.IsFalse(SteamGroup.IsCached("valve")); Assert.IsFalse(SteamGroup.IsCached(103582791429521412L)); group1.Cache(); Assert.IsTrue(SteamGroup.IsCached("valve")); Assert.IsFalse(SteamGroup.IsCached(103582791429521412L)); group1.FetchMembers(); group1.Cache(); Assert.IsTrue(SteamGroup.IsCached("valve")); Assert.IsTrue(SteamGroup.IsCached(103582791429521412L)); var group2 = SteamGroup.Create("valve", false); Assert.AreSame(group1, group2); var group3 = SteamGroup.Create(103582791429521412L, false); Assert.AreSame(group1, group3); SteamGroup.ClearCache(); group1 = SteamGroup.Create("valve"); Assert.IsTrue(SteamGroup.IsCached("valve")); Assert.IsTrue(SteamGroup.IsCached(103582791429521412L)); }
public void CaseInsensitivity() { SteamGroup.ClearCache(); var group1 = SteamGroup.Create("valve"); Assert.IsTrue(SteamGroup.IsCached("valve")); Assert.IsTrue(SteamGroup.IsCached("Valve")); Assert.IsTrue(SteamGroup.IsCached("VALVE")); var group2 = SteamGroup.Create("Valve"); var group3 = SteamGroup.Create("VALVE"); Assert.AreEqual(group1, group2); Assert.AreEqual(group1, group3); }