-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathNamespaces.cs
More file actions
44 lines (38 loc) · 1.03 KB
/
Namespaces.cs
File metadata and controls
44 lines (38 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
using System;
using System.Text;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Reflection;
using System.Diagnostics;
using BitDiffer.Core;
using BitDiffer.Common.Model;
using BitDiffer.Common.Utility;
using BitDiffer.Common.Misc;
using BitDiffer.Common.Configuration;
namespace BitDiffer.Tests
{
/// <summary>
/// Summary description for UnitTest1
/// </summary>
[TestClass]
public class Namespaces : TestBase
{
[TestMethod]
public void Namespace_Removed_Public()
{
AssertChange("BitDiffer.Tests.PublicNamespaceRemoved", ChangeType.RemovedBreaking);
}
[TestMethod]
public void Namespace_Removed_Internal()
{
AssertChange("BitDiffer.Tests.InternalNamespaceRemoved", ChangeType.RemovedNonBreaking);
}
private void AssertChange(string name, ChangeType change)
{
NamespaceDetail n1 = ExtractNamespace(Subjects.One, name);
NamespaceDetail n2 = ExtractNamespace(Subjects.Two, name);
Align(n1, n2);
Assert.AreEqual(change, n2.PerformCompare(n1));
}
}
}