Showing 71 of 215 total issues
File AssertTests.cs
has 1098 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using Edison.Framework;
using Moq;
using System;
using EAssert = Edison.Framework.Assert;
using NAssert = NUnit.Framework.Assert;
Method InitializeComponent
has 474 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(EdisonForm));
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
File ParameterParserTests.cs
has 674 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using NUnit.Framework;
using Edison.Engine.Contexts;
using Edison.Engine.Repositories.Interfaces;
using Edison.Engine.Core.Exceptions;
File Assert.cs
has 656 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using Edison.Framework;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
File Form1.cs
has 556 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using System;
using System.Collections.Generic;
using System.Data;
using System.Drawing;
using System.Linq;
Class Assert
has 62 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public class Assert : IAssert
{
#region Test state
File Form1.Designer.cs
has 538 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
namespace Edison.GUI
{
partial class EdisonForm
{
/// <summary>
Class IAssert
has 59 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public interface IAssert
{
IAssert Inconclusive(string message = null);
IAssert Fail(string message = null);
Class AssertTests
has 59 methods (exceeds 20 allowed). Consider refactoring. Open
Open
[NUnit.Framework.TestFixture]
public class AssertTests
{
private IAssert GetAssert()
File EdisonContext.cs
has 417 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using Edison.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
Class ParameterParserTests
has 39 methods (exceeds 20 allowed). Consider refactoring. Open
Open
[TestFixture]
public class ParameterParserTests
{
[TearDown]
Class EdisonForm
has 38 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public partial class EdisonForm : Form
{
#region Repositories
File TestThread.cs
has 310 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using Edison.Engine.Contexts;
using Edison.Engine.Repositories.Interfaces;
using Edison.Engine.Utilities.Structures;
using Edison.Framework;
using Edison.Injector;
Method RunThreads
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void RunThreads(Assembly assembly, Exception globalSetupEx)
{
#region Fetch tests to run
File ContextValidatorTests.cs
has 287 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using Edison.Engine.Contexts;
using Edison.Engine.Core.Exceptions;
using Edison.Engine.Repositories.Interfaces;
using Edison.Engine.Validators;
using Edison.Injector;
Method RunTestCase
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void RunTestCase(MethodInfo test, TestCaseAttribute testCase, int testRepeat, IEnumerable<MethodInfo> setup, IEnumerable<MethodInfo> teardown)
{
var timeTaken = new Stopwatch();
var testResult = default(TestResult);
Method Parse
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static bool Parse(EdisonContext context, string[] args)
{
if (context == default(EdisonContext))
{
throw new Exception("No EdisonContext supplied for parsing parameters");
Method SendMessage
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static void SendMessage(TestResult result, string token)
{
// create the attachments fields
var fieldList = new List<SlackField>();
Method RunTestFixtureCases
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void RunTestFixtureCases(Type testFixture, IEnumerable<TestCaseAttribute> cases, int testFixtureRepeat, IEnumerable<MethodInfo> fixtureSetup, IEnumerable<MethodInfo> fixtureTeardown)
{
var activator = default(object);
var setupDone = false;
var testDone = false;
Method PopulateTestResultOnException
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private TestResult PopulateTestResultOnException(MethodInfo testMethod, TestResult result, Exception ex, bool globalSetup, bool fixSetup, bool setup, bool teardown, bool test, TimeSpan time)
{
var hasInner = ex.InnerException != default(Exception);
var innerExceptionType = hasInner ? ex.InnerException.GetType() : default(Type);
var isAssertFail = innerExceptionType == typeof(AssertException);