This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Reflection; | |
using System.Collections.Generic; | |
public static class Program { | |
public static void Main (string[] args) { | |
Common.Util.ListMembers<MethodInfo>( | |
typeof(T), | |
BindingFlags.DeclaredOnly | BindingFlags.Static | BindingFlags.Public | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var testHarness = new TestHarness(); | |
// The processors decide which methods should be replaced and how they should behave once the method is called | |
var consoleTestProcessor = new ConsoleTestProcessor(); | |
testHarness.Processors.Add(consoleTestProcessor); | |
var fileSystemTestProcessor = new FileSystemTestProcessor(); | |
fileSystemTestProcessor.AddMockFile(@"c:\foo.txt", "bar"); | |
testHarness.Processors.Add(fileSystemTestProcessor); |