コード例 #1
0
        public void GetTests_WithValidAccount_ShouldFetchTests()
        {
            var tests = client.GetTests();

            Assert.That(tests.Count, Is.GreaterThan(0));
            foreach (var testSet in tests)
            {
                Assert.That(string.IsNullOrEmpty(testSet.Name), Is.False);
                Assert.That(string.IsNullOrEmpty(testSet.State), Is.False);
                Assert.That(string.IsNullOrEmpty(testSet.Service), Is.False);
                Assert.That(string.IsNullOrEmpty(testSet.UrlOrGuid), Is.False);
                Assert.That(testSet.Id, Is.GreaterThan(0));
                Assert.That(testSet.CreatedAt, Is.GreaterThan(new DateTime(2005, 1, 1)));  //Litmus was founded in 2005 so there shouldn't be any tests created before then :-)
            }
        }