Beispiel #1
0
        public void ToChatIDConvertsWellKnownID()
        {
            var clanID         = new SteamID(4, EUniverse.Public, EAccountType.Clan);
            var expectedChatID = 110338190870577156UL;

            Assert.Equal(expectedChatID, clanID.ToChatID().ConvertToUInt64());
        }
Beispiel #2
0
        public void ToChatIDDoesNotModifySelf()
        {
            var clanID = new SteamID(4, EUniverse.Public, EAccountType.Clan);

            clanID.ToChatID();
            Assert.Equal(EUniverse.Public, clanID.AccountUniverse);
            Assert.Equal(EAccountType.Clan, clanID.AccountType);
            Assert.Equal(0u, clanID.AccountInstance);
            Assert.Equal(4u, clanID.AccountID);
        }
Beispiel #3
0
        public void ToChatIDOnlySupportsClans(EAccountType type)
        {
            var id = new SteamID(1, EUniverse.Public, type);

            Assert.Throws <InvalidOperationException>(() => id.ToChatID());
        }