1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
7
namespace ICSharpCode.Scripting.Tests.Utils
10
/// Stores the filename and the code for the converted file.
12
public class ConvertedFile
14
public string FileName;
16
public Encoding Encoding;
18
public ConvertedFile(string fileName, string text, Encoding encoding)
20
this.FileName = fileName;
22
this.Encoding = encoding;
25
public override string ToString()
27
return "FileName: " + FileName + "\r\n" +
28
"Encoding: " + Encoding + "\r\n" +
32
public override bool Equals(object obj)
34
ConvertedFile convertedFile = obj as ConvertedFile;
35
if (convertedFile != null) {
36
return FileName == convertedFile.FileName && Text == convertedFile.Text && Encoding == convertedFile.Encoding;
41
public override int GetHashCode()
43
return FileName.GetHashCode();