Skip to content

Commit b8d920d

Browse files
committed
Remove unnecessary usings
1 parent d57f3ff commit b8d920d

18 files changed

Lines changed: 77 additions & 100 deletions

File tree

test/Thinktecture.Runtime.Extensions.EntityFrameworkCore.Tests.Sources/EntityFrameworkCore/ConfigurationTests/ConfigurationTests.cs

Lines changed: 34 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using System;
2-
using System.Collections.Generic;
31
using Thinktecture.EntityFrameworkCore;
42

53
namespace Thinktecture.Runtime.Tests.EntityFrameworkCore.ConfigurationTests;
@@ -40,18 +38,18 @@ public void NoMaxLength_should_have_no_max_length_for_keyed_value_objects()
4038
public void Equals_should_return_true_for_same_configuration_values()
4139
{
4240
var config1 = new Configuration
43-
{
44-
SmartEnums = SmartEnumConfiguration.Default,
45-
KeyedValueObjects = KeyedValueObjectConfiguration.NoMaxLength,
46-
UseConstructorForRead = true
47-
};
41+
{
42+
SmartEnums = SmartEnumConfiguration.Default,
43+
KeyedValueObjects = KeyedValueObjectConfiguration.NoMaxLength,
44+
UseConstructorForRead = true
45+
};
4846

4947
var config2 = new Configuration
50-
{
51-
SmartEnums = SmartEnumConfiguration.Default,
52-
KeyedValueObjects = KeyedValueObjectConfiguration.NoMaxLength,
53-
UseConstructorForRead = true
54-
};
48+
{
49+
SmartEnums = SmartEnumConfiguration.Default,
50+
KeyedValueObjects = KeyedValueObjectConfiguration.NoMaxLength,
51+
UseConstructorForRead = true
52+
};
5553

5654
config1.Equals(config2).Should().BeTrue();
5755
}
@@ -60,16 +58,16 @@ public void Equals_should_return_true_for_same_configuration_values()
6058
public void Equals_should_return_false_for_different_smart_enum_configuration()
6159
{
6260
var config1 = new Configuration
63-
{
64-
SmartEnums = SmartEnumConfiguration.Default,
65-
KeyedValueObjects = KeyedValueObjectConfiguration.NoMaxLength
66-
};
61+
{
62+
SmartEnums = SmartEnumConfiguration.Default,
63+
KeyedValueObjects = KeyedValueObjectConfiguration.NoMaxLength
64+
};
6765

6866
var config2 = new Configuration
69-
{
70-
SmartEnums = SmartEnumConfiguration.NoMaxLength,
71-
KeyedValueObjects = KeyedValueObjectConfiguration.NoMaxLength
72-
};
67+
{
68+
SmartEnums = SmartEnumConfiguration.NoMaxLength,
69+
KeyedValueObjects = KeyedValueObjectConfiguration.NoMaxLength
70+
};
7371

7472
config1.Equals(config2).Should().BeFalse();
7573
}
@@ -78,14 +76,14 @@ public void Equals_should_return_false_for_different_smart_enum_configuration()
7876
public void Equals_should_return_false_for_different_use_constructor_for_read()
7977
{
8078
var config1 = new Configuration
81-
{
82-
UseConstructorForRead = true
83-
};
79+
{
80+
UseConstructorForRead = true
81+
};
8482

8583
var config2 = new Configuration
86-
{
87-
UseConstructorForRead = false
88-
};
84+
{
85+
UseConstructorForRead = false
86+
};
8987

9088
config1.Equals(config2).Should().BeFalse();
9189
}
@@ -107,18 +105,18 @@ public void Equals_should_return_true_for_same_reference()
107105
public void GetHashCode_should_be_consistent_with_Equals()
108106
{
109107
var config1 = new Configuration
110-
{
111-
SmartEnums = SmartEnumConfiguration.Default,
112-
KeyedValueObjects = KeyedValueObjectConfiguration.NoMaxLength,
113-
UseConstructorForRead = true
114-
};
108+
{
109+
SmartEnums = SmartEnumConfiguration.Default,
110+
KeyedValueObjects = KeyedValueObjectConfiguration.NoMaxLength,
111+
UseConstructorForRead = true
112+
};
115113

116114
var config2 = new Configuration
117-
{
118-
SmartEnums = SmartEnumConfiguration.Default,
119-
KeyedValueObjects = KeyedValueObjectConfiguration.NoMaxLength,
120-
UseConstructorForRead = true
121-
};
115+
{
116+
SmartEnums = SmartEnumConfiguration.Default,
117+
KeyedValueObjects = KeyedValueObjectConfiguration.NoMaxLength,
118+
UseConstructorForRead = true
119+
};
122120

123121
config1.GetHashCode().Should().Be(config2.GetHashCode());
124122
}

test/Thinktecture.Runtime.Extensions.EntityFrameworkCore.Tests.Sources/EntityFrameworkCore/ConfigurationTests/KeyedValueObjectConfigurationTests.cs

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using System;
2-
using System.Collections.Generic;
31
using Thinktecture.EntityFrameworkCore;
42

53
namespace Thinktecture.Runtime.Tests.EntityFrameworkCore.ConfigurationTests;
@@ -23,14 +21,14 @@ public void MaxLengthStrategy_getter_should_return_no_op_when_null()
2321
public void Equals_should_return_true_for_same_strategy()
2422
{
2523
var config1 = new KeyedValueObjectConfiguration
26-
{
27-
MaxLengthStrategy = new FixedKeyedValueObjectMaxLengthStrategy(50)
28-
};
24+
{
25+
MaxLengthStrategy = new FixedKeyedValueObjectMaxLengthStrategy(50)
26+
};
2927

3028
var config2 = new KeyedValueObjectConfiguration
31-
{
32-
MaxLengthStrategy = new FixedKeyedValueObjectMaxLengthStrategy(50)
33-
};
29+
{
30+
MaxLengthStrategy = new FixedKeyedValueObjectMaxLengthStrategy(50)
31+
};
3432

3533
config1.Equals(config2).Should().BeTrue();
3634
}
@@ -39,14 +37,14 @@ public void Equals_should_return_true_for_same_strategy()
3937
public void Equals_should_return_false_for_different_strategy()
4038
{
4139
var config1 = new KeyedValueObjectConfiguration
42-
{
43-
MaxLengthStrategy = new FixedKeyedValueObjectMaxLengthStrategy(50)
44-
};
40+
{
41+
MaxLengthStrategy = new FixedKeyedValueObjectMaxLengthStrategy(50)
42+
};
4543

4644
var config2 = new KeyedValueObjectConfiguration
47-
{
48-
MaxLengthStrategy = new FixedKeyedValueObjectMaxLengthStrategy(100)
49-
};
45+
{
46+
MaxLengthStrategy = new FixedKeyedValueObjectMaxLengthStrategy(100)
47+
};
5048

5149
config1.Equals(config2).Should().BeFalse();
5250
}
@@ -68,14 +66,14 @@ public void Equals_should_return_true_for_same_reference()
6866
public void GetHashCode_should_be_consistent_with_Equals()
6967
{
7068
var config1 = new KeyedValueObjectConfiguration
71-
{
72-
MaxLengthStrategy = new FixedKeyedValueObjectMaxLengthStrategy(50)
73-
};
69+
{
70+
MaxLengthStrategy = new FixedKeyedValueObjectMaxLengthStrategy(50)
71+
};
7472

7573
var config2 = new KeyedValueObjectConfiguration
76-
{
77-
MaxLengthStrategy = new FixedKeyedValueObjectMaxLengthStrategy(50)
78-
};
74+
{
75+
MaxLengthStrategy = new FixedKeyedValueObjectMaxLengthStrategy(50)
76+
};
7977

8078
config1.GetHashCode().Should().Be(config2.GetHashCode());
8179
}

test/Thinktecture.Runtime.Extensions.EntityFrameworkCore.Tests.Sources/EntityFrameworkCore/ConfigurationTests/SmartEnumConfigurationTests.cs

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using System;
2-
using System.Collections.Generic;
31
using Thinktecture.EntityFrameworkCore;
42

53
namespace Thinktecture.Runtime.Tests.EntityFrameworkCore.ConfigurationTests;
@@ -29,14 +27,14 @@ public void MaxLengthStrategy_getter_should_return_default_when_null()
2927
public void Equals_should_return_true_for_same_strategy()
3028
{
3129
var config1 = new SmartEnumConfiguration
32-
{
33-
MaxLengthStrategy = new FixedSmartEnumMaxLengthStrategy(50)
34-
};
30+
{
31+
MaxLengthStrategy = new FixedSmartEnumMaxLengthStrategy(50)
32+
};
3533

3634
var config2 = new SmartEnumConfiguration
37-
{
38-
MaxLengthStrategy = new FixedSmartEnumMaxLengthStrategy(50)
39-
};
35+
{
36+
MaxLengthStrategy = new FixedSmartEnumMaxLengthStrategy(50)
37+
};
4038

4139
config1.Equals(config2).Should().BeTrue();
4240
}
@@ -45,14 +43,14 @@ public void Equals_should_return_true_for_same_strategy()
4543
public void Equals_should_return_false_for_different_strategy()
4644
{
4745
var config1 = new SmartEnumConfiguration
48-
{
49-
MaxLengthStrategy = new FixedSmartEnumMaxLengthStrategy(50)
50-
};
46+
{
47+
MaxLengthStrategy = new FixedSmartEnumMaxLengthStrategy(50)
48+
};
5149

5250
var config2 = new SmartEnumConfiguration
53-
{
54-
MaxLengthStrategy = new FixedSmartEnumMaxLengthStrategy(100)
55-
};
51+
{
52+
MaxLengthStrategy = new FixedSmartEnumMaxLengthStrategy(100)
53+
};
5654

5755
config1.Equals(config2).Should().BeFalse();
5856
}
@@ -74,14 +72,14 @@ public void Equals_should_return_true_for_same_reference()
7472
public void GetHashCode_should_be_consistent_with_Equals()
7573
{
7674
var config1 = new SmartEnumConfiguration
77-
{
78-
MaxLengthStrategy = new FixedSmartEnumMaxLengthStrategy(50)
79-
};
75+
{
76+
MaxLengthStrategy = new FixedSmartEnumMaxLengthStrategy(50)
77+
};
8078

8179
var config2 = new SmartEnumConfiguration
82-
{
83-
MaxLengthStrategy = new FixedSmartEnumMaxLengthStrategy(50)
84-
};
80+
{
81+
MaxLengthStrategy = new FixedSmartEnumMaxLengthStrategy(50)
82+
};
8583

8684
config1.GetHashCode().Should().Be(config2.GetHashCode());
8785
}

test/Thinktecture.Runtime.Extensions.EntityFrameworkCore.Tests.Sources/EntityFrameworkCore/KeyedValueObjectMaxLengthStrategyTests/FixedKeyedValueObjectMaxLengthStrategyTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
32
using Thinktecture.EntityFrameworkCore;
43

54
namespace Thinktecture.Runtime.Tests.EntityFrameworkCore.KeyedValueObjectMaxLengthStrategyTests;

test/Thinktecture.Runtime.Extensions.EntityFrameworkCore.Tests.Sources/EntityFrameworkCore/KeyedValueObjectMaxLengthStrategyTests/NoOpKeyedValueObjectMaxLengthStrategyTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
32
using Thinktecture.EntityFrameworkCore;
43

54
namespace Thinktecture.Runtime.Tests.EntityFrameworkCore.KeyedValueObjectMaxLengthStrategyTests;

test/Thinktecture.Runtime.Extensions.EntityFrameworkCore.Tests.Sources/EntityFrameworkCore/MaxLengthChangeTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
32
using Thinktecture.EntityFrameworkCore;
43

54
namespace Thinktecture.Runtime.Tests.EntityFrameworkCore;

test/Thinktecture.Runtime.Extensions.EntityFrameworkCore.Tests.Sources/EntityFrameworkCore/SmartEnumMaxLengthStrategyTests/DefaultSmartEnumMaxLengthStrategyTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.Linq;
43
using Thinktecture.EntityFrameworkCore;
54

65
namespace Thinktecture.Runtime.Tests.EntityFrameworkCore.SmartEnumMaxLengthStrategyTests;

test/Thinktecture.Runtime.Extensions.EntityFrameworkCore.Tests.Sources/EntityFrameworkCore/SmartEnumMaxLengthStrategyTests/FixedSmartEnumMaxLengthStrategyTests.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.Linq;
43
using Thinktecture.EntityFrameworkCore;
54

6-
75
namespace Thinktecture.Runtime.Tests.EntityFrameworkCore.SmartEnumMaxLengthStrategyTests;
86

97
public class FixedSmartEnumMaxLengthStrategyTests
@@ -74,9 +72,9 @@ public void GetMaxLength_should_be_independent_of_items()
7472
{
7573
var strategy = new FixedSmartEnumMaxLengthStrategy(50);
7674
var items = new List<ISmartEnumItem>
77-
{
78-
new TestSmartEnumItem("VeryLongStringThatExceedsFiftyCharactersInLength", new object(), "Item1")
79-
};
75+
{
76+
new TestSmartEnumItem("VeryLongStringThatExceedsFiftyCharactersInLength", new object(), "Item1")
77+
};
8078

8179
var result = strategy.GetMaxLength(typeof(object), typeof(string), items);
8280

test/Thinktecture.Runtime.Extensions.EntityFrameworkCore.Tests.Sources/EntityFrameworkCore/SmartEnumMaxLengthStrategyTests/NoOpSmartEnumMaxLengthStrategyTests.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.Linq;
43
using Thinktecture.EntityFrameworkCore;
54

6-
75
namespace Thinktecture.Runtime.Tests.EntityFrameworkCore.SmartEnumMaxLengthStrategyTests;
86

97
public class NoOpSmartEnumMaxLengthStrategyTests
@@ -64,10 +62,10 @@ public void GetMaxLength_should_work_with_empty_items()
6462
public void GetMaxLength_should_work_with_populated_items()
6563
{
6664
var items = new List<ISmartEnumItem>
67-
{
68-
new TestSmartEnumItem("ABC", new object(), "Item1"),
69-
new TestSmartEnumItem("DEFGHIJ", new object(), "Item2")
70-
};
65+
{
66+
new TestSmartEnumItem("ABC", new object(), "Item1"),
67+
new TestSmartEnumItem("DEFGHIJ", new object(), "Item2")
68+
};
7169

7270
var result = _strategy.GetMaxLength(typeof(object), typeof(string), items);
7371

test/Thinktecture.Runtime.Extensions.SourceGenerator.Tests/CodeAnalysis/AdditionOperatorsCodeGeneratorTests/AdditionOperatorsStateBuilder.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using System.Collections.Immutable;
21
using Microsoft.CodeAnalysis;
32
using NSubstitute;
43
using Thinktecture.CodeAnalysis;

0 commit comments

Comments
 (0)