Browse Source

Fixed build.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2359 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 19 years ago
parent
commit
ef8237e087
  1. 4
      src/Main/Base/Test/CollectionClassOverridesTestFixture.cs
  2. 4
      src/Main/Base/Test/ExceptionClassOverridesTestFixture.cs
  3. 53
      src/Main/Base/Test/Utils/MockDefaultReturnType.cs

4
src/Main/Base/Test/CollectionClassOverridesTestFixture.cs

@ -80,7 +80,7 @@ namespace ICSharpCode.SharpDevelop.Tests @@ -80,7 +80,7 @@ namespace ICSharpCode.SharpDevelop.Tests
{
ProjectContentRegistry registry = new ProjectContentRegistry();
IProjectContent mscorlibProjectContent = registry.Mscorlib;
IClass c = mscorlibProjectContent.GetClass("System.Collections.ObjectModel.Collection");
IClass c = mscorlibProjectContent.GetClass("System.Collections.ObjectModel.Collection", 1);
List<string> methodNames = new List<string>();
foreach (IMethod m in c.Methods) {
@ -107,7 +107,7 @@ namespace ICSharpCode.SharpDevelop.Tests @@ -107,7 +107,7 @@ namespace ICSharpCode.SharpDevelop.Tests
{
ProjectContentRegistry registry = new ProjectContentRegistry();
IProjectContent mscorlibProjectContent = registry.Mscorlib;
IClass collectionClass = mscorlibProjectContent.GetClass("System.Collections.ObjectModel.Collection");
IClass collectionClass = mscorlibProjectContent.GetClass("System.Collections.ObjectModel.Collection", 1);
DefaultProjectContent projectContent = new DefaultProjectContent();
DefaultCompilationUnit unit = new DefaultCompilationUnit(projectContent);

4
src/Main/Base/Test/ExceptionClassOverridesTestFixture.cs

@ -82,7 +82,7 @@ namespace ICSharpCode.SharpDevelop.Tests @@ -82,7 +82,7 @@ namespace ICSharpCode.SharpDevelop.Tests
{
ProjectContentRegistry registry = new ProjectContentRegistry();
IProjectContent mscorlibProjectContent = registry.Mscorlib;
IClass c = mscorlibProjectContent.GetClass("System.Exception");
IClass c = mscorlibProjectContent.GetClass("System.Exception", 0);
List<string> propertyNames = new List<string>();
foreach (IProperty p in c.Properties) {
@ -111,7 +111,7 @@ namespace ICSharpCode.SharpDevelop.Tests @@ -111,7 +111,7 @@ namespace ICSharpCode.SharpDevelop.Tests
{
ProjectContentRegistry registry = new ProjectContentRegistry();
IProjectContent mscorlibProjectContent = registry.Mscorlib;
IClass exceptionClass = mscorlibProjectContent.GetClass("System.Exception");
IClass exceptionClass = mscorlibProjectContent.GetClass("System.Exception", 0);
DefaultProjectContent projectContent = new DefaultProjectContent();
DefaultCompilationUnit unit = new DefaultCompilationUnit(projectContent);

53
src/Main/Base/Test/Utils/MockDefaultReturnType.cs

@ -29,7 +29,7 @@ namespace ICSharpCode.SharpDevelop.Tests.Utils @@ -29,7 +29,7 @@ namespace ICSharpCode.SharpDevelop.Tests.Utils
return methods;
}
}
/// <summary>
/// Gets the property list directly. Only available in the
/// mock default return type class.
@ -40,6 +40,11 @@ namespace ICSharpCode.SharpDevelop.Tests.Utils @@ -40,6 +40,11 @@ namespace ICSharpCode.SharpDevelop.Tests.Utils
}
}
public bool Equals(IReturnType other)
{
throw new NotImplementedException();
}
public string FullyQualifiedName {
get {
throw new NotImplementedException();
@ -76,24 +81,6 @@ namespace ICSharpCode.SharpDevelop.Tests.Utils @@ -76,24 +81,6 @@ namespace ICSharpCode.SharpDevelop.Tests.Utils
}
}
public bool IsArrayReturnType {
get {
throw new NotImplementedException();
}
}
public bool IsGenericReturnType {
get {
throw new NotImplementedException();
}
}
public bool IsConstructedReturnType {
get {
throw new NotImplementedException();
}
}
public IClass GetUnderlyingClass()
{
throw new NotImplementedException();
@ -133,5 +120,33 @@ namespace ICSharpCode.SharpDevelop.Tests.Utils @@ -133,5 +120,33 @@ namespace ICSharpCode.SharpDevelop.Tests.Utils
{
throw new NotImplementedException();
}
public bool IsArrayReturnType {
get {
throw new NotImplementedException();
}
}
public bool IsGenericReturnType {
get {
throw new NotImplementedException();
}
}
public bool IsConstructedReturnType {
get {
throw new NotImplementedException();
}
}
public bool IsDecoratingReturnType<T>() where T : DecoratingReturnType
{
throw new NotImplementedException();
}
public T CastToDecoratingReturnType<T>() where T : DecoratingReturnType
{
throw new NotImplementedException();
}
}
}

Loading…
Cancel
Save