Example #1
0
        public void ValidRequest_ReturnsSteamServerInfo()
        {
            var response = SteamApiClient.GetSteamServerInfoAsync()
                           .Result;

            SleepAfterSendingRequest();

            var responseDate = DateTimeOffset.FromUnixTimeSeconds((long)response.Contents.ServerTime).Date;

            Assert.True(DateTime.Now.Date == responseDate);
        }