コード例 #1
0
        public void ValidateSuccessTest()
        {
            FileDescriptor file = FileDescriptor.CreateFileDescriptor("u72003136-d859-4be8-86de-c559c841bf10",
                                                                      "BC Data/Sites/Integration10/Designs", "Cycleway.ttm");

            file.Validate();
        }
コード例 #2
0
        public void ValidateFailEmptyTest()
        {
            //empty file descriptor
            FileDescriptor file = FileDescriptor.CreateFileDescriptor(
                string.Empty, string.Empty, string.Empty);

            Assert.ThrowsException <ServiceException>(() => file.Validate());
        }