You've already forked linux-packaging-mono
Imported Upstream version 5.0.0.42
Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
This commit is contained in:
parent
1190d13a04
commit
6bdd276d05
@ -229,6 +229,26 @@ namespace MonoTests.System.Resources
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ConvertFrom_Type_String_FilePathWithBackslashes ()
|
||||
{
|
||||
if (Path.DirectorySeparatorChar == '\\')
|
||||
// non-windows test
|
||||
return;
|
||||
|
||||
string fileContents = "foobar";
|
||||
string fileName = "foo.txt";
|
||||
string filePath = Path.Combine (_tempDirectory, fileName);
|
||||
File.WriteAllText (filePath, fileContents);
|
||||
|
||||
filePath = _tempDirectory + "\\.\\" + fileName;
|
||||
|
||||
string fileRef = filePath + ";" + typeof (string).AssemblyQualifiedName;
|
||||
string result = _converter.ConvertFrom (fileRef) as string;
|
||||
Assert.IsNotNull (result, "#A1");
|
||||
Assert.AreEqual (result, fileContents, "#A2");
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ConvertFrom_Type_StreamReader ()
|
||||
{
|
||||
|
Reference in New Issue
Block a user