public void Visit_NoOperand_EmitsInstruction() { _generatorMock .Setup(generator => generator.Emit(System.Reflection.Emit.OpCodes.Nop)) .Verifiable(); var subject = new ILGeneratorInstructionVisitor(_generatorMock.Object); subject.Visit(Instruction.Create(OpCodes.Nop)); _generatorMock.Verify(); }