+ [Test]
+ public void TestExternalResourcesNoRootNamespaceWithTargetPath ()
+ {
+ CheckResourceNames (new string[,] {
+ {"../folder/foo.txt", null, null, "abc.txt"},
+ {"../folder/foo.de.txt", null, null, "xyz.txt"}},
+ new string[] { "abc.txt", "xyz.txt" }, null);
+ }
+
+ [Test]
+ public void TestExternalResourcesWithRootNamespaceWithTargetPath ()
+ {
+ CheckResourceNames (new string[,] {
+ {"../folder/foo.txt", null, null, "abc.txt"},
+ {"../folder/foo.de.txt", null, null, "xyz.txt"}},
+ new string[] { "RN.abc.txt", "RN.xyz.txt" }, "RN");
+ }
+
+ [Test]
+ public void TestExternalResourcesNoRootNamespaceNoTargetPath ()
+ {
+ CheckResourceNames (new string[,] {
+ {"../folder/foo.txt", null, null},
+ {"../folder/foo.de.txt", null, null}},
+ new string[] { "foo.txt", Path.Combine ("de", "foo.txt") }, null);
+ }
+
+ [Test]
+ public void TestExternalResourcesWithRootNamespaceNoTargetPath ()
+ {
+ CheckResourceNames (new string[,] {
+ {"../folder/foo.txt", null, null},
+ {"../folder/foo.de.txt", null, null}},
+ new string[] { "RN.foo.txt", Path.Combine ("de", "RN.foo.txt") }, "RN");
+ }
+
+ [Test]
+ public void TestInvalidCulture ()
+ {
+ string [,] files = new string [,] {
+ { "Foo.invalid.txt", null, null },
+ { "Foo.invalid.resx", null, null }
+ };
+ CheckResourceNames (files, new string [] {"RN1.RN2.Foo.invalid.txt", "RN1.RN2.Foo.invalid"},
+ "RN1.RN2");
+ }
+