Пример #1
0
		public void testGetToValues() {
			var client = new CtsRestClient();

			List<string> idNames = client.GetIdNames();
            Console.WriteLine("idnames: " + idNames.Count);
			var res = idNames.GetRange(0, 15);

            List<string> exp = top15;

			Assert.IsNotNull(idNames);
			Assert.IsTrue(idNames.Count > 0);
			Assert.AreEqual(exp.Count, res.Count);
			CollectionAssert.AreEquivalent(exp, res);
		}
Пример #2
0
		public void testGetFromValues() {
			var client = new CtsRestClient();

			List<string> idNames = client.GetIdNames(true);

			var res = idNames.GetRange(0, 14);

			List<string> exp = top15;
			exp.Remove(CTSRest.Properties.Resources.INCHI_CODE);

			Assert.IsNotNull(idNames);
			Assert.IsTrue(idNames.Count > 0);
			Assert.AreEqual(exp.Count, res.Count);
			CollectionAssert.AreEquivalent(exp, res);
		}