comparison API/Loading/LoadableObjectSourceResourceSetTests.cs @ 228:7c21ca1482cb

Re #419: Remove assumptions of a file-based install * Update tests to use new "loadable object" and "loadable object source" wrappers
author IBBoard <dev@ibboard.co.uk>
date Sat, 07 Jul 2012 21:02:53 +0100
parents
children
comparison
equal deleted inserted replaced
227:d8cd6b259a9f 228:7c21ca1482cb
1 // This file (LoadableObjectSourceResourceSetTests.cs) is a part of the IBBoard.WarFoundry.API.Tests project and is copyright 2012 IBBoard
2 //
3 // The file and the library/program it is in are licensed and distributed, without warranty, under the GNU Affero GPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license.
4 using System;
5 using IBBoard.NUnit;
6 using System.Reflection;
7
8 namespace IBBoard.WarFoundry.API.Loading
9 {
10 public class LoadableObjectSourceResourceSetTests : AbstractEqualityTest<LoadableObjectSourceResourceSet>
11 {
12 public override LoadableObjectSourceResourceSet GetObject()
13 {
14 return new LoadableObjectSourceResourceSet(Assembly.GetExecutingAssembly(), "test");
15 }
16
17 public override LoadableObjectSourceResourceSet GetSameObject()
18 {
19 return new LoadableObjectSourceResourceSet(Assembly.GetExecutingAssembly(), "test");
20 }
21
22 public override LoadableObjectSourceResourceSet GetDifferentObject()
23 {
24 return new LoadableObjectSourceResourceSet(typeof(Does).Assembly, "othertest");
25 }
26
27 public LoadableObjectSourceResourceSet GetOtherDifferentAssemblyObject()
28 {
29 return new LoadableObjectSourceResourceSet(typeof(Does).Assembly, "test");
30 }
31
32 public LoadableObjectSourceResourceSet GetOtherDifferentIDListObject()
33 {
34 return new LoadableObjectSourceResourceSet(Assembly.GetExecutingAssembly(), "test", "othertest");
35 }
36
37 public LoadableObjectSourceResourceSet GetOtherDifferentAssemblyAndIDsObject()
38 {
39 return new LoadableObjectSourceResourceSet(typeof(Does).Assembly, "othertest");
40 }
41 }
42 }
43