Ejemplo n.º 1
0
        public void GetTest_WithValidTestId_ShouldFetchTest()
        {
            var testSet = client.GetTest(LitmusInfo.TestSetId);

            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 :-)
        }