public void TestInitialize() { var fileName = "Mapping.json"; var jsonStr = @"[ { ""character"": ""単一のキー入力しかないケース"", ""mode"": ""Direct"", ""keys"": [ [ ""N1"" ] ] }, { ""character"": ""複数回キーを入力するケース"", ""mode"": ""Japanese"", ""keys"": [ [ ""Y"" ], [ ""A"" ], [ ""J"" ], [ ""I"" ], [ ""R"" ], [ ""U"" ], [ ""S"" ], [ ""I"" ] ] }, { ""character"": ""同じキーを連続で入力するケース1"", ""mode"": ""Japanese"", ""keys"": [ [ ""N"" ], [ ""N"" ] ] }, { ""character"": ""同じキーを連続で入力するケース2"", ""mode"": ""Japanese"", ""keys"": [ [ ""N"" ], [ ], [ ""N"" ] ] }, { ""character"": ""装飾キーを同時入力するケース"", ""mode"": ""Direct"", ""keys"": [ [ ""Control"", ""Shift"", ""Escape"" ] ] }, { ""character"": ""複雑なショートカットキー入力をするケース1"", ""mode"": ""Direct"", ""keys"": [ [ ""Control"", ""A"" ], [ ""Control"", ""C"" ], [ ""Control"", ""V"" ], [ ""Control"", ""V"" ] ] }, { ""character"": ""複雑なショートカットキー入力をするケース2"", ""mode"": ""Direct"", ""keys"": [ [ ""Control"", ""A"" ], [ ""Control"", ""C"" ], [ ""Control"", ""V"" ], [ ], [ ""Control"", ""V"" ] ] }, { ""character"": ""複雑なショートカットキー入力をするケース3"", ""mode"": ""Direct"", ""keys"": [ [ ""Control"", ""A"" ], [ ""Control"", ""C"" ], [ ""Control"", ""V"" ], [ ""Control"" ], [ ""Control"", ""V"" ] ] }, { ""character"": ""複雑なショートカットキー入力をするケース4"", ""mode"": ""Direct"", ""keys"": [ [ ""Control"", ""A"" ], [ ""Control"", ""C"" ], [ ""Control"", ""V"" ], [ ""Control"" ], [ ""V"", ""Control"" ] ] } ]"; var reader = new TestFileReader(); reader.RegisterStringPair(fileName, jsonStr); this.query = new InputInfoQuery(reader); }