public void AcquireDataTest1() { RAM target = new RAM(); List <Tuple <string, object, DataType> > actual; actual = target.AcquireData(); foreach (Tuple <string, object, DataType> tup in actual) { Assert.IsNotNull(tup.Item1); switch (tup.Item3) { case DataType.Byte: Assert.IsNotNull(Convert.ToByte(tup.Item2)); break; case DataType.Float: Assert.IsNotNull(Convert.ToDouble(tup.Item2)); break; case DataType.Int: Assert.IsNotNull(Convert.ToInt32(tup.Item2)); break; case DataType.String: Assert.IsNotNull(Convert.ToString(tup.Item2)); break; default: Assert.Fail(); break; } } }