Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–576 unchanged (576 lines)
577 [TestCase("ger", "DE")]
578 [TestCase("gsw", "DE")]
579 [TestCase("cze", "CS")]
580 [TestCase("ice", "IS")]
581 [TestCase("dut", "NL")]
582 [TestCase("nor", "NO")]
583 public void should_format_languagecodes_properly(string language, string code)
584 {
585 _namingConfig.StandardEpisodeFormat = "{Series.Title}.S{season:00}E{episode:00}.{Episode.Title}.{MEDIAINFO.FULL}";
586
587 _episodeFile.MediaInfo = new Core.MediaFiles.MediaInfo.MediaInfoModel()
588 {
589 VideoFormat = "h264",
…lines 590–1063 unchanged (474 lines)

After

…lines 1–576 unchanged (576 lines)
577 [TestCase("ger", "DE")]
578 [TestCase("gsw", "DE")]
579 [TestCase("cze", "CS")]
580 [TestCase("ice", "IS")]
581 [TestCase("dut", "NL")]
582 [TestCase("nor", "NO")]
583 [TestCase("geo", "KA")]
584 [TestCase("kat", "KA")]
585 public void should_format_languagecodes_properly(string language, string code)
586 {
587 _namingConfig.StandardEpisodeFormat = "{Series.Title}.S{season:00}E{episode:00}.{Episode.Title}.{MEDIAINFO.FULL}";
588
589 _episodeFile.MediaInfo = new Core.MediaFiles.MediaInfo.MediaInfoModel()
590 {
…lines 591–1065 unchanged (475 lines)

Before

compilation_unit
using_directive
using "using"
qualified_name
qualified_name
identifier "System"
. "."
identifier "Collections"
. "."
identifier "Generic"
; ";"
using_directive
using "using"
qualified_name
identifier "System"
. "."
identifier "Globalization"
; ";"
using_directive
using "using"
qualified_name
identifier "System"
. "."
identifier "IO"
; ";"
using_directive
using "using"
qualified_name
identifier "System"
. "."
identifier "Linq"
; ";"
using_directive
using "using"
qualified_name
identifier "System"
. "."
identifier "Threading"
; ";"
using_directive
using "using"
qualified_name
identifier "FizzWare"
. "."
identifier "NBuilder"
; ";"
using_directive
using "using"
identifier "FluentAssertions"
; ";"
using_directive
using "using"
identifier "Moq"
; ";"
using_directive
using "using"
qualified_name
identifier "NUnit"
. "."
identifier "Framework"
; ";"
using_directive
using "using"
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "CustomFormats"
; ";"
using_directive
using "using"
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "MediaFiles"
; ";"
using_directive
using "using"
qualified_name
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "MediaFiles"
. "."
identifier "MediaInfo"
; ";"
using_directive
using "using"
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "Organizer"
; ";"
using_directive
using "using"
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "Qualities"
; ";"
using_directive
using "using"
qualified_name
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "Test"
. "."
identifier "Framework"
; ";"
using_directive
using "using"
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "Tv"
; ";"
using_directive
using "using"
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Test"
. "."
identifier "Common"
; ";"
namespace_declaration
namespace "namespace"
qualified_name
qualified_name
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "Test"
. "."
identifier "OrganizerTests"
. "."
identifier "FileNameBuilderTests"
declaration_list
{ "{"
class_declaration
attribute_list
[ "["
attribute
identifier "TestFixture"
] "]"
modifier
public "public"
class "class"
identifier "FileNameBuilderFixture"
base_list
: ":"
generic_name
identifier "CoreTest"
type_argument_list
< "<"
identifier "FileNameBuilder"
> ">"
declaration_list
{ "{"
field_declaration
modifier
private "private"
variable_declaration
identifier "Series"
variable_declarator
identifier "_series"
; ";"
field_declaration
modifier
private "private"
variable_declaration
identifier "Episode"
variable_declarator
identifier "_episode1"
; ";"
field_declaration
modifier
private "private"
variable_declaration
identifier "EpisodeFile"
variable_declarator
identifier "_episodeFile"
; ";"
field_declaration
modifier
private "private"
variable_declaration
identifier "NamingConfig"
variable_declarator
identifier "_namingConfig"
; ";"
method_declaration (+399 nodes collapsed)
method_declaration (+26 nodes collapsed)
method_declaration (+26 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+94 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+88 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+85 nodes collapsed)
method_declaration (+85 nodes collapsed)
method_declaration (+85 nodes collapsed)
method_declaration (+85 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+83 nodes collapsed)
method_declaration (+83 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+148 nodes collapsed)
method_declaration (+88 nodes collapsed)
method_declaration (+95 nodes collapsed)
method_declaration (+108 nodes collapsed)
method_declaration (+98 nodes collapsed)
method_declaration (+120 nodes collapsed)
method_declaration (+151 nodes collapsed)
method_declaration (+151 nodes collapsed)
method_declaration (+148 nodes collapsed)
method_declaration (+94 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+112 nodes collapsed)
method_declaration (+185 nodes collapsed)
method_declaration (+185 nodes collapsed)
method_declaration (+173 nodes collapsed)
method_declaration (+173 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+88 nodes collapsed)
method_declaration (+88 nodes collapsed)
method_declaration (+88 nodes collapsed)
method_declaration (+99 nodes collapsed)
method_declaration (+99 nodes collapsed)
method_declaration (+110 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+87 nodes collapsed)
method_declaration (+170 nodes collapsed)
method_declaration
attribute_list
[ "["
attribute
identifier "TestCase"
attribute_argument_list
( "("
attribute_argument
string_literal
" "\""
string_literal_content "nob"
" "\""
, ","
attribute_argument
string_literal
" "\""
string_literal_content "NB"
" "\""
) ")"
] "]"
attribute_list
[ "["
attribute
identifier "TestCase"
attribute_argument_list
( "("
attribute_argument
string_literal
" "\""
string_literal_content "swe"
" "\""
, ","
attribute_argument
string_literal
" "\""
string_literal_content "SV"
" "\""
) ")"
] "]"
attribute_list
[ "["
attribute
identifier "TestCase"
attribute_argument_list
( "("
attribute_argument
string_literal
" "\""
string_literal_content "zho"
" "\""
, ","
attribute_argument
string_literal
" "\""
string_literal_content "ZH"
" "\""
) ")"
] "]"
attribute_list
[ "["
attribute
identifier "TestCase"
attribute_argument_list
( "("
attribute_argument
string_literal
" "\""
string_literal_content "chi"
" "\""
, ","
attribute_argument
string_literal
" "\""
string_literal_content "ZH"
" "\""
) ")"
] "]"
attribute_list
[ "["
attribute
identifier "TestCase"
attribute_argument_list
( "("
attribute_argument
string_literal
" "\""
string_literal_content "fre"
" "\""
, ","
attribute_argument
string_literal
" "\""
string_literal_content "FR"
" "\""
) ")"
] "]"
attribute_list
[ "["
attribute
identifier "TestCase"
attribute_argument_list
( "("
attribute_argument
string_literal
" "\""
string_literal_content "rum"
" "\""
, ","
attribute_argument
string_literal
" "\""
string_literal_content "RO"
" "\""
) ")"
] "]"
attribute_list
[ "["
attribute
identifier "TestCase"
attribute_argument_list
( "("
attribute_argument
string_literal
" "\""
string_literal_content "per"
" "\""
, ","
attribute_argument
string_literal
" "\""
string_literal_content "FA"
" "\""
) ")"
] "]"
attribute_list
[ "["
attribute
identifier "TestCase"
attribute_argument_list
( "("
attribute_argument
string_literal
" "\""
string_literal_content "ger"
" "\""
, ","
attribute_argument
string_literal
" "\""
string_literal_content "DE"
" "\""
) ")"
] "]"
attribute_list
[ "["
attribute
identifier "TestCase"
attribute_argument_list
( "("
attribute_argument
string_literal
" "\""
string_literal_content "gsw"
" "\""
, ","
attribute_argument
string_literal
" "\""
string_literal_content "DE"
" "\""
) ")"
] "]"
attribute_list
[ "["
attribute
identifier "TestCase"
attribute_argument_list
( "("
attribute_argument
string_literal
" "\""
string_literal_content "cze"
" "\""
, ","
attribute_argument
string_literal
" "\""
string_literal_content "CS"
" "\""
) ")"
] "]"
attribute_list
[ "["
attribute
identifier "TestCase"
attribute_argument_list
( "("
attribute_argument
string_literal
" "\""
string_literal_content "ice"
" "\""
, ","
attribute_argument
string_literal
" "\""
string_literal_content "IS"
" "\""
) ")"
] "]"
attribute_list
[ "["
attribute
identifier "TestCase"
attribute_argument_list
( "("
attribute_argument
string_literal
" "\""
string_literal_content "dut"
" "\""
, ","
attribute_argument
string_literal
" "\""
string_literal_content "NL"
" "\""
) ")"
] "]"
attribute_list
[ "["
attribute
identifier "TestCase"
attribute_argument_list
( "("
attribute_argument
string_literal
" "\""
string_literal_content "nor"
" "\""
, ","
attribute_argument
string_literal
" "\""
string_literal_content "NO"
" "\""
) ")"
] "]"
modifier
public "public"
predefined_type "void"
identifier "should_format_languagecodes_properly"
parameter_list
( "("
parameter
predefined_type "string"
identifier "language"
, ","
parameter
predefined_type "string"
identifier "code"
) ")"
block (+155 nodes collapsed)
method_declaration (+165 nodes collapsed)
method_declaration (+101 nodes collapsed)
method_declaration (+116 nodes collapsed)
method_declaration (+112 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+95 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+83 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+83 nodes collapsed)
method_declaration (+83 nodes collapsed)
method_declaration (+138 nodes collapsed)
method_declaration (+150 nodes collapsed)
method_declaration (+88 nodes collapsed)
method_declaration (+112 nodes collapsed)
method_declaration (+85 nodes collapsed)
method_declaration (+138 nodes collapsed)
method_declaration (+119 nodes collapsed)
method_declaration (+205 nodes collapsed)
method_declaration (+132 nodes collapsed)
method_declaration (+133 nodes collapsed)
method_declaration (+337 nodes collapsed)
method_declaration (+143 nodes collapsed)
method_declaration (+117 nodes collapsed)
method_declaration (+126 nodes collapsed)
method_declaration (+117 nodes collapsed)
method_declaration (+117 nodes collapsed)
method_declaration (+117 nodes collapsed)
method_declaration (+290 nodes collapsed)
method_declaration (+88 nodes collapsed)
method_declaration (+85 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+164 nodes collapsed)
} "}"
} "}"

After

compilation_unit
using_directive
using "using"
qualified_name
qualified_name
identifier "System"
. "."
identifier "Collections"
. "."
identifier "Generic"
; ";"
using_directive
using "using"
qualified_name
identifier "System"
. "."
identifier "Globalization"
; ";"
using_directive
using "using"
qualified_name
identifier "System"
. "."
identifier "IO"
; ";"
using_directive
using "using"
qualified_name
identifier "System"
. "."
identifier "Linq"
; ";"
using_directive
using "using"
qualified_name
identifier "System"
. "."
identifier "Threading"
; ";"
using_directive
using "using"
qualified_name
identifier "FizzWare"
. "."
identifier "NBuilder"
; ";"
using_directive
using "using"
identifier "FluentAssertions"
; ";"
using_directive
using "using"
identifier "Moq"
; ";"
using_directive
using "using"
qualified_name
identifier "NUnit"
. "."
identifier "Framework"
; ";"
using_directive
using "using"
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "CustomFormats"
; ";"
using_directive
using "using"
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "MediaFiles"
; ";"
using_directive
using "using"
qualified_name
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "MediaFiles"
. "."
identifier "MediaInfo"
; ";"
using_directive
using "using"
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "Organizer"
; ";"
using_directive
using "using"
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "Qualities"
; ";"
using_directive
using "using"
qualified_name
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "Test"
. "."
identifier "Framework"
; ";"
using_directive
using "using"
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "Tv"
; ";"
using_directive
using "using"
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Test"
. "."
identifier "Common"
; ";"
namespace_declaration
namespace "namespace"
qualified_name
qualified_name
qualified_name
qualified_name
identifier "NzbDrone"
. "."
identifier "Core"
. "."
identifier "Test"
. "."
identifier "OrganizerTests"
. "."
identifier "FileNameBuilderTests"
declaration_list
{ "{"
class_declaration
attribute_list
[ "["
attribute
identifier "TestFixture"
] "]"
modifier
public "public"
class "class"
identifier "FileNameBuilderFixture"
base_list
: ":"
generic_name
identifier "CoreTest"
type_argument_list
< "<"
identifier "FileNameBuilder"
> ">"
declaration_list
{ "{"
field_declaration
modifier
private "private"
variable_declaration
identifier "Series"
variable_declarator
identifier "_series"
; ";"
field_declaration
modifier
private "private"
variable_declaration
identifier "Episode"
variable_declarator
identifier "_episode1"
; ";"
field_declaration
modifier
private "private"
variable_declaration
identifier "EpisodeFile"
variable_declarator
identifier "_episodeFile"
; ";"
field_declaration
modifier
private "private"
variable_declaration
identifier "NamingConfig"
variable_declarator
identifier "_namingConfig"
; ";"
method_declaration (+399 nodes collapsed)
method_declaration (+26 nodes collapsed)
method_declaration (+26 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+94 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+88 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+85 nodes collapsed)
method_declaration (+85 nodes collapsed)
method_declaration (+85 nodes collapsed)
method_declaration (+85 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+83 nodes collapsed)
method_declaration (+83 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+148 nodes collapsed)
method_declaration (+88 nodes collapsed)
method_declaration (+95 nodes collapsed)
method_declaration (+108 nodes collapsed)
method_declaration (+98 nodes collapsed)
method_declaration (+120 nodes collapsed)
method_declaration (+151 nodes collapsed)
method_declaration (+151 nodes collapsed)
method_declaration (+148 nodes collapsed)
method_declaration (+94 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+112 nodes collapsed)
method_declaration (+185 nodes collapsed)
method_declaration (+185 nodes collapsed)
method_declaration (+173 nodes collapsed)
method_declaration (+173 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+88 nodes collapsed)
method_declaration (+88 nodes collapsed)
method_declaration (+88 nodes collapsed)
method_declaration (+99 nodes collapsed)
method_declaration (+99 nodes collapsed)
method_declaration (+110 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+87 nodes collapsed)
method_declaration (+170 nodes collapsed)
method_declaration
attribute_list
[ "["
attribute
identifier "TestCase"
attribute_argument_list
( "("
attribute_argument
string_literal
" "\""
string_literal_content "nob"
" "\""
, ","
attribute_argument
string_literal
" "\""
string_literal_content "NB"
" "\""
) ")"
] "]"
attribute_list
[ "["
attribute
identifier "TestCase"
attribute_argument_list
( "("
attribute_argument
string_literal
" "\""
string_literal_content "swe"
" "\""
, ","
attribute_argument
string_literal
" "\""
string_literal_content "SV"
" "\""
) ")"
] "]"
attribute_list
[ "["
attribute
identifier "TestCase"
attribute_argument_list
( "("
attribute_argument
string_literal
" "\""
string_literal_content "zho"
" "\""
, ","
attribute_argument
string_literal
" "\""
string_literal_content "ZH"
" "\""
) ")"
] "]"
attribute_list
[ "["
attribute
identifier "TestCase"
attribute_argument_list
( "("
attribute_argument
string_literal
" "\""
string_literal_content "chi"
" "\""
, ","
attribute_argument
string_literal
" "\""
string_literal_content "ZH"
" "\""
) ")"
] "]"
attribute_list
[ "["
attribute
identifier "TestCase"
attribute_argument_list
( "("
attribute_argument
string_literal
" "\""
string_literal_content "fre"
" "\""
, ","
attribute_argument
string_literal
" "\""
string_literal_content "FR"
" "\""
) ")"
] "]"
attribute_list
[ "["
attribute
identifier "TestCase"
attribute_argument_list
( "("
attribute_argument
string_literal
" "\""
string_literal_content "rum"
" "\""
, ","
attribute_argument
string_literal
" "\""
string_literal_content "RO"
" "\""
) ")"
] "]"
attribute_list
[ "["
attribute
identifier "TestCase"
attribute_argument_list
( "("
attribute_argument
string_literal
" "\""
string_literal_content "per"
" "\""
, ","
attribute_argument
string_literal
" "\""
string_literal_content "FA"
" "\""
) ")"
] "]"
attribute_list
[ "["
attribute
identifier "TestCase"
attribute_argument_list
( "("
attribute_argument
string_literal
" "\""
string_literal_content "ger"
" "\""
, ","
attribute_argument
string_literal
" "\""
string_literal_content "DE"
" "\""
) ")"
] "]"
attribute_list
[ "["
attribute
identifier "TestCase"
attribute_argument_list
( "("
attribute_argument
string_literal
" "\""
string_literal_content "gsw"
" "\""
, ","
attribute_argument
string_literal
" "\""
string_literal_content "DE"
" "\""
) ")"
] "]"
attribute_list
[ "["
attribute
identifier "TestCase"
attribute_argument_list
( "("
attribute_argument
string_literal
" "\""
string_literal_content "cze"
" "\""
, ","
attribute_argument
string_literal
" "\""
string_literal_content "CS"
" "\""
) ")"
] "]"
attribute_list
[ "["
attribute
identifier "TestCase"
attribute_argument_list
( "("
attribute_argument
string_literal
" "\""
string_literal_content "ice"
" "\""
, ","
attribute_argument
string_literal
" "\""
string_literal_content "IS"
" "\""
) ")"
] "]"
attribute_list
[ "["
attribute
identifier "TestCase"
attribute_argument_list
( "("
attribute_argument
string_literal
" "\""
string_literal_content "dut"
" "\""
, ","
attribute_argument
string_literal
" "\""
string_literal_content "NL"
" "\""
) ")"
] "]"
attribute_list
[ "["
attribute
identifier "TestCase"
attribute_argument_list
( "("
attribute_argument
string_literal
" "\""
string_literal_content "nor"
" "\""
, ","
attribute_argument
string_literal
" "\""
string_literal_content "NO"
" "\""
) ")"
] "]"
attribute_list
[ "["
attribute
identifier "TestCase"
attribute_argument_list
( "("
attribute_argument
string_literal
" "\""
string_literal_content "geo"
" "\""
, ","
attribute_argument
string_literal
" "\""
string_literal_content "KA"
" "\""
) ")"
] "]"
attribute_list
[ "["
attribute
identifier "TestCase"
attribute_argument_list
( "("
attribute_argument
string_literal
" "\""
string_literal_content "kat"
" "\""
, ","
attribute_argument
string_literal
" "\""
string_literal_content "KA"
" "\""
) ")"
] "]"
modifier
public "public"
predefined_type "void"
identifier "should_format_languagecodes_properly"
parameter_list
( "("
parameter
predefined_type "string"
identifier "language"
, ","
parameter
predefined_type "string"
identifier "code"
) ")"
block (+155 nodes collapsed)
method_declaration (+165 nodes collapsed)
method_declaration (+101 nodes collapsed)
method_declaration (+116 nodes collapsed)
method_declaration (+112 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+95 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+83 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+83 nodes collapsed)
method_declaration (+83 nodes collapsed)
method_declaration (+138 nodes collapsed)
method_declaration (+150 nodes collapsed)
method_declaration (+88 nodes collapsed)
method_declaration (+112 nodes collapsed)
method_declaration (+85 nodes collapsed)
method_declaration (+138 nodes collapsed)
method_declaration (+119 nodes collapsed)
method_declaration (+205 nodes collapsed)
method_declaration (+132 nodes collapsed)
method_declaration (+133 nodes collapsed)
method_declaration (+337 nodes collapsed)
method_declaration (+143 nodes collapsed)
method_declaration (+117 nodes collapsed)
method_declaration (+126 nodes collapsed)
method_declaration (+117 nodes collapsed)
method_declaration (+117 nodes collapsed)
method_declaration (+117 nodes collapsed)
method_declaration (+290 nodes collapsed)
method_declaration (+88 nodes collapsed)
method_declaration (+85 nodes collapsed)
method_declaration (+76 nodes collapsed)
method_declaration (+164 nodes collapsed)
} "}"
} "}"