本文整理汇总了C#中FilePath.Equals方法的典型用法代码示例。如果您正苦于以下问题:C# FilePath.Equals方法的具体用法?C# FilePath.Equals怎么用?C# FilePath.Equals使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FilePath
的用法示例。
在下文中一共展示了FilePath.Equals方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FilePath_Unit_Equals3_ObjIsUnequivalentString
public void FilePath_Unit_Equals3_ObjIsUnequivalentString()
{
String value = @"C:\Temp\Log.txt";
FilePath target = new FilePath(value);
String other = value + "2";
Boolean actual = target.Equals(other);
Assert.AreEqual(false, actual);
}
示例2: FilePath_Unit_Equals2_OtherIsUnequivalentFilePath
public void FilePath_Unit_Equals2_OtherIsUnequivalentFilePath()
{
String value = @"C:\Temp\Log.txt";
FilePath target = new FilePath(value);
FilePath other = new FilePath(value + "2");
Boolean actual = target.Equals(other);
Assert.AreEqual(false, actual);
}
示例3: FilePath_Unit_Equals3_ObjIsEquivalentString
public void FilePath_Unit_Equals3_ObjIsEquivalentString()
{
String value = @"C:\Temp\Log.txt";
FilePath target = new FilePath(value);
String other = value.ToUpperInvariant();
Boolean actual = target.Equals(other);
Assert.AreEqual(true, actual);
}
示例4: FilePath_Unit_Equals2_OtherIsSame
public void FilePath_Unit_Equals2_OtherIsSame()
{
String value = @"C:\Temp\Log.txt";
FilePath target = new FilePath(value);
FilePath other = target;
Boolean actual = target.Equals(other);
Assert.AreEqual(true, actual);
}
示例5: FilePath_Unit_Equals1_ObjIsUnequivalentFilePath
public void FilePath_Unit_Equals1_ObjIsUnequivalentFilePath()
{
String value = @"C:\Temp\Log.txt";
FilePath target = new FilePath(value);
Object obj = new FilePath(value + "2");
Boolean actual = target.Equals(obj);
Assert.AreEqual(false, actual);
}
示例6: FilePath_Unit_Equals1_ObjIsSame
public void FilePath_Unit_Equals1_ObjIsSame()
{
String value = @"C:\Temp\Log.txt";
FilePath target = new FilePath(value);
Object obj = target;
Boolean actual = target.Equals(obj);
Assert.AreEqual(true, actual);
}
示例7: FilePath_Unit_Equals1_ObjIsEquivalentFilePath
public void FilePath_Unit_Equals1_ObjIsEquivalentFilePath()
{
String value = @"C:\Temp\Log.txt";
FilePath target = new FilePath(value);
Object obj = new FilePath(value.ToUpperInvariant());
Boolean actual = target.Equals(obj);
Assert.AreEqual(true, actual);
}
示例8: FilePath_Unit_Equals1_ObjIsDifferentType
public void FilePath_Unit_Equals1_ObjIsDifferentType()
{
String value = @"C:\Temp\Log.txt";
FilePath target = new FilePath(value);
Object obj = new Object();
Boolean actual = target.Equals(obj);
Assert.AreEqual(false, actual);
}