Exemplo n.º 1
0
        public void ToString_LoadConstantInstruction_Double()
        {
            var loadInstruction = new LoadConstantInstruction(LoadKind.Double, 0.69);

            Assert.Equal("ldc.d 0.69", loadInstruction.ToString());
        }
Exemplo n.º 2
0
        public void ToString_LoadConstantInstruction_Integer()
        {
            var loadInstruction = new LoadConstantInstruction(LoadKind.Integer, 42);

            Assert.Equal("ldc.i 42", loadInstruction.ToString());
        }