コード例 #1
0
        public void GetWorks(
            [ValueSource(nameof(GetTestItems))]
            TestItem testItem)
        {
            var source   = new FolderSource(SamplesPath);
            var resource = source.Get(testItem.ResourceName);

            Assert.IsNotNull(resource);
            Assert.AreEqual(testItem.ExpectedVersion, resource.Version);
        }
コード例 #2
0
        public void EnumerateAllWorks()
        {
            var source = new FolderSource(SamplesPath);

            var result = source.EnumerateAll().ToList();

            Assert.AreEqual(3, result.Count);
            Assert.IsTrue(result.Contains("pagina"));
            Assert.IsTrue(result.Contains("tooltip"));
            Assert.IsTrue(result.Contains("SubFolder/radar"));
        }