public void Should_check_for_ms_test_framework_reference()
        {
            _fsService.Stub(f => f.FileExists("")).IgnoreArguments().Return(true);
            _assemblyReader.Stub(a => a.GetTargetFramework("")).Return(new Version());
            _assemblyReader.Stub(r => r.GetReferences("")).Return(new string[] { "Microsoft.VisualStudio.QualityTools.UnitTestFramework" });
            var change = "";

            _runner.CanHandleTestFor(change).ShouldBeTrue();
        }
Esempio n. 2
0
        public void Should_check_for_mspec_test_framework_reference()
        {
            var assembly = String.Empty;

            _fileSystem.Stub(f => f.FileExists(assembly)).IgnoreArguments().Return(true);
            _assemblyReader.Stub(a => a.GetTargetFramework(assembly)).Return(new Version());
            _assemblyReader.Stub(r => r.GetReferences(assembly)).Return(new[] { "Machine.Specifications" });

            var handles = _runner.CanHandleTestFor(assembly);

            handles.ShouldBeTrue();
        }