public void Will_Not_Execute_EditRemoveAndSort_Command_If_Not_CS_File( [Frozen] DTE2 dte, RemoveAndSortUsingsCommand sut, string filePath, ITextView textView) { sut.Execute( filePath + ".txt", textView); dte .DidNotReceive() .ExecuteCommand( Arg.Any <string>(), Arg.Any <string>()); }
public void Will_Not_Execute_EditRemoveAndSort_Command_If_TextView_Contains_Compiler_IfDirective( [Frozen] DTE2 dte, RemoveAndSortUsingsCommand sut, string filePath, ITextView textView, ITextSnapshot snapshot) { textView.TextSnapshot.Returns(snapshot); snapshot.GetText().Returns("#if"); sut.Execute( filePath + ".cs", textView); dte .DidNotReceive() .ExecuteCommand( Arg.Any <string>(), Arg.Any <string>()); }