public void AreValidSourcesShouldReturnFalseIfValidSourceExtensionsIsEmpty() { this.testablePlatformServiceProvider.MockTestSourceValidator.SetupGet(ts => ts.ValidSourceExtensions).Returns(new List <string> { }); MSTestDiscoverer discoverer = new MSTestDiscoverer(); Assert.IsFalse(discoverer.AreValidSources(new List <string> { "dummy.te" })); }
public void AreValidSourcesShouldThrowIfPlatformsValidSourceExtensionsIsNull() { this.testablePlatformServiceProvider.MockTestSourceValidator.SetupGet(ts => ts.ValidSourceExtensions).Returns((List <string>)null); MSTestDiscoverer discoverer = new MSTestDiscoverer(); Action a = () => discoverer.AreValidSources(new List <string> { "dummy" }); ActionUtility.ActionShouldThrowExceptionOfType(a, typeof(ArgumentNullException)); }