Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

Commit

Permalink
removed warnings from tests and other files according to JustCode
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Berardi committed Nov 4, 2011
1 parent f183d36 commit 98f3a35
Show file tree
Hide file tree
Showing 42 changed files with 57 additions and 147 deletions.
7 changes: 1 addition & 6 deletions src/Apache/Cassandra/AuthenticationException.cs
Expand Up @@ -4,14 +4,9 @@
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.IO;
using Thrift;
using Thrift.Collections;
using Thrift.Protocol;
using Thrift.Transport;

namespace Apache.Cassandra
{

Expand Down
6 changes: 1 addition & 5 deletions src/Apache/Cassandra/AuthenticationRequest.cs
Expand Up @@ -4,14 +4,10 @@
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.IO;
using Thrift;
using Thrift.Collections;
using Thrift.Protocol;
using Thrift.Transport;

namespace Apache.Cassandra
{

Expand Down
7 changes: 1 addition & 6 deletions src/Apache/Cassandra/AuthorizationException.cs
Expand Up @@ -4,14 +4,9 @@
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.IO;
using Thrift;
using Thrift.Collections;
using Thrift.Protocol;
using Thrift.Transport;

namespace Apache.Cassandra
{

Expand Down
7 changes: 1 addition & 6 deletions src/Apache/Cassandra/ColumnParent.cs
Expand Up @@ -4,14 +4,9 @@
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.IO;
using Thrift;
using Thrift.Collections;
using Thrift.Protocol;
using Thrift.Transport;

namespace Apache.Cassandra
{

Expand Down
7 changes: 1 addition & 6 deletions src/Apache/Cassandra/ColumnPath.cs
Expand Up @@ -4,14 +4,9 @@
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.IO;
using Thrift;
using Thrift.Collections;
using Thrift.Protocol;
using Thrift.Transport;

namespace Apache.Cassandra
{

Expand Down
1 change: 0 additions & 1 deletion src/Linq/CassandraColumnFamily`1+QueryProvider.cs
Expand Up @@ -3,7 +3,6 @@
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using FluentCassandra.Operations;
using FluentCassandra.Types;
using FluentCassandra.Linq;

Expand Down
1 change: 0 additions & 1 deletion test/FluentCassandra.Sandbox/Properties/AssemblyInfo.cs
@@ -1,5 +1,4 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
Expand Down
7 changes: 1 addition & 6 deletions test/FluentCassandra.Tests/CassandraQueryTest.cs
@@ -1,29 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using FluentCassandra.Types;

namespace FluentCassandra.Tests
namespace FluentCassandra
{
[TestFixture]
public class CassandraQueryTest
{
private CassandraContext _db;
private CassandraColumnFamily<AsciiType> _family;
private CassandraSuperColumnFamily<AsciiType, AsciiType> _superFamily;
private const string _testKey = "Test1";
private const string _testName = "Test1";
private const string _testSuperName = "SubTest1";

[SetUp]
public void TestInit()
{
var setup = new _CassandraSetup();
_db = setup.DB;
_family = setup.Family;
_superFamily = setup.SuperFamily;
}

[TearDown]
Expand Down
@@ -1,14 +1,11 @@
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using NUnit.Framework;
using FluentCassandra.Connections;

namespace FluentCassandra.Tests.Connections
namespace FluentCassandra.Connections
{
[TestFixture]
public class ConnectionProviderTest
public class ConnectionProviderTests
{
[Test]
public void NormalConnectionProvider()
Expand Down
@@ -1,19 +1,16 @@
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using NUnit.Framework;
using FluentCassandra.Connections;

namespace FluentCassandra.Tests.Connections
namespace FluentCassandra.Connections
{
[TestFixture]
public class NormalConnectionProviderTest
public class NormalConnectionProviderTests
{
/// <summary>
/// Needed to switch to testing ports since the network timeout was making the tests unbearably long.
/// </summary>
private static string FailoverConnectionString = "Keyspace=Testing;Connection Timeout=1;Server=127.0.0.1:1234,127.0.0.1:4567,127.0.0.1";
private readonly string FailoverConnectionString = "Keyspace=Testing;Connection Timeout=1;Server=127.0.0.1:1234,127.0.0.1:4567,127.0.0.1";

[Test]
public void Fails_Over()
Expand Down
6 changes: 3 additions & 3 deletions test/FluentCassandra.Tests/FluentCassandra.Tests.csproj
Expand Up @@ -9,7 +9,7 @@
<ProjectGuid>{9DAF7022-5820-4214-B13E-AC0A1B37691F}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>FluentCassandra.Tests</RootNamespace>
<RootNamespace>FluentCassandra</RootNamespace>
<AssemblyName>FluentCassandra.Tests</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
Expand Down Expand Up @@ -54,8 +54,8 @@
</ItemGroup>
<ItemGroup>
<Compile Include="CassandraQueryTest.cs" />
<Compile Include="Connection\ConnectionProviderTest.cs" />
<Compile Include="Connection\NormalConnectionProviderTest.cs" />
<Compile Include="Connections\ConnectionProviderTests.cs" />
<Compile Include="Connections\NormalConnectionProviderTests.cs" />
<Compile Include="Linq\LinqTests.cs" />
<Compile Include="Operations\CassandraIndexClauseTest.cs" />
<Compile Include="TypesToDatabase\AsciiTypeTest.cs" />
Expand Down
4 changes: 1 addition & 3 deletions test/FluentCassandra.Tests/FluentColumnFamilyTest.cs
@@ -1,11 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using FluentCassandra.Types;

namespace FluentCassandra.Tests
namespace FluentCassandra
{
[TestFixture]
public class FluentColumnFamilyTest
Expand Down
4 changes: 1 addition & 3 deletions test/FluentCassandra.Tests/FluentColumnTest.cs
@@ -1,11 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using FluentCassandra.Types;

namespace FluentCassandra.Tests
namespace FluentCassandra
{
[TestFixture]
public class FluentColumnTest
Expand Down
5 changes: 1 addition & 4 deletions test/FluentCassandra.Tests/FluentSuperColumnFamilyTest.cs
@@ -1,12 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using FluentCassandra.Types;
using System.Collections;

namespace FluentCassandra.Tests
namespace FluentCassandra
{
[TestFixture]
public class FluentSuperColumnFamilyTest
Expand Down
4 changes: 1 addition & 3 deletions test/FluentCassandra.Tests/FluentSuperColumnTest.cs
@@ -1,11 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using FluentCassandra.Types;

namespace FluentCassandra.Tests
namespace FluentCassandra
{
[TestFixture]
public class FluentSuperColumnTest
Expand Down
4 changes: 1 addition & 3 deletions test/FluentCassandra.Tests/GuidGeneratorTest.cs
@@ -1,10 +1,8 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;

namespace FluentCassandra.Tests
namespace FluentCassandra
{
[TestFixture]
public class GuidGeneratorTest
Expand Down
2 changes: 1 addition & 1 deletion test/FluentCassandra.Tests/Linq/LinqTests.cs
Expand Up @@ -3,7 +3,7 @@
using NUnit.Framework;
using FluentCassandra.Types;

namespace FluentCassandra.Tests.Linq
namespace FluentCassandra.Linq
{
[TestFixture]
public class LinqTests
Expand Down
@@ -1,12 +1,10 @@
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using NUnit.Framework;
using FluentCassandra.Types;
using Apache.Cassandra;

namespace FluentCassandra.Operations.Test
namespace FluentCassandra.Operations
{
[TestFixture]
public class CassandraIndexClauseTest
Expand Down
5 changes: 1 addition & 4 deletions test/FluentCassandra.Tests/Operations/ColumnCountTest.cs
@@ -1,11 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using FluentCassandra.Types;

namespace FluentCassandra.Tests.Operations
namespace FluentCassandra.Operations
{
[TestFixture]
public class ColumnCountTest
Expand All @@ -14,7 +12,6 @@ public class ColumnCountTest
private CassandraColumnFamily<AsciiType> _family;
private CassandraSuperColumnFamily<AsciiType, AsciiType> _superFamily;
private const string _testKey = "Test1";
private const string _testName = "Test1";
private const string _testSuperName = "SubTest1";

[SetUp]
Expand Down
4 changes: 1 addition & 3 deletions test/FluentCassandra.Tests/Operations/GetColumnTest.cs
@@ -1,11 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using FluentCassandra.Types;

namespace FluentCassandra.Tests.Operations
namespace FluentCassandra.Operations
{
[TestFixture]
public class GetColumnTest
Expand Down
4 changes: 1 addition & 3 deletions test/FluentCassandra.Tests/Operations/GetRangeSliceTest.cs
@@ -1,11 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using FluentCassandra.Types;

namespace FluentCassandra.Tests.Operations
namespace FluentCassandra.Operations
{
[TestFixture]
public class GetRangeSliceTest
Expand Down
4 changes: 1 addition & 3 deletions test/FluentCassandra.Tests/Operations/GetSliceTest.cs
@@ -1,11 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using FluentCassandra.Types;

namespace FluentCassandra.Tests.Operations
namespace FluentCassandra.Operations
{
[TestFixture]
public class GetSliceTest
Expand Down
4 changes: 1 addition & 3 deletions test/FluentCassandra.Tests/Operations/InsertColumnTest.cs
@@ -1,11 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using FluentCassandra.Types;

namespace FluentCassandra.Tests.Operations
namespace FluentCassandra.Operations
{
[TestFixture]
public class InsertColumnTest
Expand Down
4 changes: 1 addition & 3 deletions test/FluentCassandra.Tests/Operations/MultiGetSliceTest.cs
@@ -1,11 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using FluentCassandra.Types;

namespace FluentCassandra.Tests.Operations
namespace FluentCassandra.Operations
{
[TestFixture]
public class MultiGetSliceTest
Expand Down
2 changes: 1 addition & 1 deletion test/FluentCassandra.Tests/Operations/RemoveColumnTest.cs
Expand Up @@ -2,7 +2,7 @@
using NUnit.Framework;
using FluentCassandra.Types;

namespace FluentCassandra.Tests.Operations
namespace FluentCassandra.Operations
{
[TestFixture]
public class RemoveColumnTest
Expand Down
1 change: 0 additions & 1 deletion test/FluentCassandra.Tests/Properties/AssemblyInfo.cs
@@ -1,5 +1,4 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
Expand Down
8 changes: 3 additions & 5 deletions test/FluentCassandra.Tests/Types/AsciiTypeTest.cs
@@ -1,11 +1,9 @@
using FluentCassandra.Types;
using NUnit.Framework;
using System;
using System.ComponentModel;
using System;
using System.Text;
using System.Linq;
using NUnit.Framework;

namespace FluentCassandra.Tests.Types
namespace FluentCassandra.Types
{
[TestFixture]
public class AsciiTypeTest
Expand Down

0 comments on commit 98f3a35

Please sign in to comment.