Exemplo n.º 1
0
        public void TestDiscovererMetadataCtorDoesNotThrowWhenDefaultUriIsNull()
        {
            var metadata = new TestDiscovererMetadata(new List <string> {
            }, null);

            Assert.IsNull(metadata.DefaultExecutorUri);
        }
Exemplo n.º 2
0
        public void TestDiscovererMetadataCtorDoesNotThrowWhenFileExtensionsIsEmpty()
        {
            var metadata = new TestDiscovererMetadata(new List <string> {
            }, null);

            Assert.IsNull(metadata.FileExtension);
        }
Exemplo n.º 3
0
        public void TestDiscovererMetadataCtorSetsFileExtensions()
        {
            var extensions = new List <string> {
                "csv", "dll"
            };
            var metadata = new TestDiscovererMetadata(extensions, null);

            CollectionAssert.AreEqual(extensions, metadata.FileExtension.ToList());
        }
Exemplo n.º 4
0
        public void TestDiscovererMetadataCtorDoesNotThrowWhenFileExtensionsIsNull()
        {
            var metadata = new TestDiscovererMetadata(null, null);

            Assert.IsNull(metadata.FileExtension);
        }
Exemplo n.º 5
0
        public void TestDiscovererMetadataCtorSetsAssemblyType()
        {
            var metadata = new TestDiscovererMetadata(null, "executor://helloworld", AssemblyType.Native);

            Assert.AreEqual(AssemblyType.Native, metadata.AssemblyType);
        }
Exemplo n.º 6
0
        public void TestDiscovererMetadataCtorSetsDefaultUri()
        {
            var metadata = new TestDiscovererMetadata(null, "executor://helloworld");

            Assert.AreEqual("executor://helloworld/", metadata.DefaultExecutorUri.AbsoluteUri);
        }