public void UnapprovedNamespace_ApplyFix_NoDiagnostic() { var sampleCode = @" namespace NationalInstruments.Design.Toolbar { class Program { static void Main(string[] args) { } } }"; using (var testState = new TestState()) { var approvedNamespaceFiles = testState.GetApprovedNamespaces(); var test = new AutoTestFile(sampleCode); var testAfterFix = new TestFile(sampleCode); VerifyFix(test, testAfterFix, additionalTestFiles: null, additionalFiles: approvedNamespaceFiles); testState.AssertNamespaceExistsInApprovedNamespacesFile("NationalInstruments.Design.Toolbar"); VerifyDiagnostics(test, approvedNamespaceFiles); } }