コード例 #1
0
        public void ProductIdToLongType()
        {
            var id = ContractProductReaderStub.ReadProductId();

            var result = ContractProductValidator.ProductIdToLongType(id);

            Assert.AreEqual(typeof(long), result.GetType());
        }
コード例 #2
0
        public void ProductId()
        {
            var id = ContractProductReaderStub.ReadProductId();

            var result = ContractProductValidator.ProductId(id);

            Assert.AreEqual(1, result);
        }
コード例 #3
0
        public void IsProductIdNotNull()
        {
            var id = ContractProductReaderStub.ReadProductId();

            var result = ContractProductValidator.IsProductIdNotNull(id);

            Assert.IsTrue(result);
        }