From 79f2d954f7d562692e2966a3e2270a34f255d042 Mon Sep 17 00:00:00 2001 From: Andrew Stewart Date: Sat, 13 Dec 2014 21:53:25 +0000 Subject: [PATCH] Added solution and sublime configure sublime project --- .gitignore | 133 +++++- .../GildedRose.UnitTests.csproj | 7 +- GildedRose.UnitTests/GivenABackstagePass.cs | 192 ++++----- GildedRose.sln | 28 ++ GildedRose.sublime-project | 7 +- GildedRose.sublime-workspace | 394 +++++------------- GildedRose/GildedRose.cs | 1 + GildedRose/GildedRose.csproj | 96 +++-- GildedRose/Properties/AssemblyInfo.cs | 72 ++-- 9 files changed, 428 insertions(+), 502 deletions(-) create mode 100644 GildedRose.sln diff --git a/.gitignore b/.gitignore index 3cb8a93..14fce41 100644 --- a/.gitignore +++ b/.gitignore @@ -1,23 +1,116 @@ -obj -bin -Bin -_ReSharper.* -*.csproj.user -*.resharper.user -*.resharper +*.sw* +*.orig +**/tags +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. + +# User-specific files *.suo -*.cache -*~ -*.swp -Release -Debug -App_Data -RavenDb +*.user +*.sln.docstates +*.sublime-workspace +*.userprefs -packages/ -Tools -build -iisnode -node_modules +*/test-results/ +# Build results + +[Dd]ebug*/ +[Rr]elease/ + +#build/ + + +[Tt]est[Rr]esult +[Bb]uild[Ll]og.* + +*_i.c +*_p.c +*.ilk +*.meta +*.obj +*.pch +*.pdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.vspscc +*.vssscc +.builds .DS_Store -.OpenIDE + +*.pidb + +*.log +*.scc +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opensdf +*.sdf + +# Visual Studio profiler +*.psess +*.vsp + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ + +*.[Rr]e[Ss]harper + +# NCrunch +*.ncrunch* +.*crunch*.local.xml + +# Installshield output folder +[Ee]xpress + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish + +# Publish Web Output +*.Publish.xml + +# Others +[Bb]in +[Oo]bj +sql +TestResults +[Tt]est[Rr]esult* +*.Cache +ClientBin +[Ss]tyle[Cc]op.* +~$* +*.dbmdl + +*.[Pp]ublish.xml + +Generated_Code #added for RIA/Silverlight projects + +# Backup & report files from converting an old project file to a newer +# Visual Studio version. Backup files are not needed, because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML + +# NuGet +packages/ + diff --git a/GildedRose.UnitTests/GildedRose.UnitTests.csproj b/GildedRose.UnitTests/GildedRose.UnitTests.csproj index a9688f4..5ca772e 100644 --- a/GildedRose.UnitTests/GildedRose.UnitTests.csproj +++ b/GildedRose.UnitTests/GildedRose.UnitTests.csproj @@ -54,8 +54,13 @@ --> - {cb41ef38-823f-11e4-be41-3c15c2bea220} + {2DE7D313-9B85-423A-8DC4-0B7EB8099C8C} GildedRose + \ No newline at end of file diff --git a/GildedRose.UnitTests/GivenABackstagePass.cs b/GildedRose.UnitTests/GivenABackstagePass.cs index 72d8050..8e12e7d 100644 --- a/GildedRose.UnitTests/GivenABackstagePass.cs +++ b/GildedRose.UnitTests/GivenABackstagePass.cs @@ -4,113 +4,113 @@ namespace GildedRose.UnitTests { - public class GivenABackstagePass - { - static String BACKSTAGE_PASS = "Backstage passes to a TAFKAL80ETC concert"; + public class GivenABackstagePass + { + static String BACKSTAGE_PASS = "Backstage passes to a TAFKAL80ETC concert"; - private Item UpdateFrom(int initialSellIn, int initialQuality) - { - Item item = new Item(BACKSTAGE_PASS, initialSellIn, initialQuality); - List items = new List(); - items.Add(item); - GildedRose.UpdateQuality(items); - return item; - } + private Item UpdateFrom(int initialSellIn, int initialQuality) + { + Item item = new Item(BACKSTAGE_PASS, initialSellIn, initialQuality); + List items = new List(); + items.Add(item); + GildedRose.UpdateQuality(items); + return item; + } - [Fact] - public void LongBeforeSellDate() - { - Item item = UpdateFrom(11, 10); - Assert.True(item.quality == 11); - Assert.True(item.sellIn == 10); - } + [Fact] + public void LongBeforeSellDate() + { + Item item = UpdateFrom(11, 10); + Assert.True(item.quality == 11); + Assert.True(item.sellIn == 10); + } - [Fact] - public void LongBeforeSellDateAtMaxQuality() - { - Item item = UpdateFrom(11, 50); - Assert.True(item.quality == 50); - Assert.True(item.sellIn == 10); - } + [Fact] + public void LongBeforeSellDateAtMaxQuality() + { + Item item = UpdateFrom(11, 50); + Assert.True(item.quality == 50); + Assert.True(item.sellIn == 10); + } - [Fact] - public void MediumCloseSellDateUpperBound() - { - Item item = UpdateFrom(10, 10); - Assert.True(item.quality == 12); - Assert.True(item.sellIn == 9); - } + [Fact] + public void MediumCloseSellDateUpperBound() + { + Item item = UpdateFrom(10, 10); + Assert.True(item.quality == 12); + Assert.True(item.sellIn == 9); + } - [Fact] - public void MediumCloseSellDateUpperBoundAtMaxQuality() - { - Item item = UpdateFrom(10, 50); - Assert.True(item.quality == 50); - Assert.True(item.sellIn == 9); - } + [Fact] + public void MediumCloseSellDateUpperBoundAtMaxQuality() + { + Item item = UpdateFrom(10, 50); + Assert.True(item.quality == 50); + Assert.True(item.sellIn == 9); + } - [Fact] - public void MediumCloseSellDateLowerBound() - { - Item item = UpdateFrom(6, 10); - Assert.True(item.quality == 12); - Assert.True(item.sellIn == 5); - } + [Fact] + public void MediumCloseSellDateLowerBound() + { + Item item = UpdateFrom(6, 10); + Assert.True(item.quality == 12); + Assert.True(item.sellIn == 5); + } - [Fact] - public void MediumCloseSellDateLowerBoundAtMaxQuality() - { - Item item = UpdateFrom(6, 50); - Assert.True(item.quality == 50); - Assert.True(item.sellIn == 5); - } + [Fact] + public void MediumCloseSellDateLowerBoundAtMaxQuality() + { + Item item = UpdateFrom(6, 50); + Assert.True(item.quality == 50); + Assert.True(item.sellIn == 5); + } - [Fact] - public void VeryCloseToSellDateUpperBound() - { - Item item = UpdateFrom(5, 10); - Assert.True(item.quality == 13); - Assert.True(item.sellIn == 4); - } + [Fact] + public void VeryCloseToSellDateUpperBound() + { + Item item = UpdateFrom(5, 10); + Assert.True(item.quality == 13); + Assert.True(item.sellIn == 4); + } - [Fact] - public void VeryCloseToSellDateUpperBoundAtMaxQuality() - { - Item item = UpdateFrom(5, 50); - Assert.True(item.quality == 50); - Assert.True(item.sellIn == 4); - } + [Fact] + public void VeryCloseToSellDateUpperBoundAtMaxQuality() + { + Item item = UpdateFrom(5, 50); + Assert.True(item.quality == 50); + Assert.True(item.sellIn == 4); + } - [Fact] - public void VeryCloseToSellDateLowerBound() - { - Item item = UpdateFrom(1, 10); - Assert.True(item.quality == 13); - Assert.True(item.sellIn == 0); - } + [Fact] + public void VeryCloseToSellDateLowerBound() + { + Item item = UpdateFrom(1, 10); + Assert.True(item.quality == 13); + Assert.True(item.sellIn == 0); + } - [Fact] - public void VeryCloseToSellDateLowerBoundAtMaxQuality() - { - Item item = UpdateFrom(1, 50); - Assert.True(item.quality == 50); - Assert.True(item.sellIn == 0); - } + [Fact] + public void VeryCloseToSellDateLowerBoundAtMaxQuality() + { + Item item = UpdateFrom(1, 50); + Assert.True(item.quality == 50); + Assert.True(item.sellIn == 0); + } - [Fact] - public void OnSellDate() - { - Item item = UpdateFrom(0, 10); - Assert.True(item.quality == 0); - Assert.True(item.sellIn == -1); - } + [Fact] + public void OnSellDate() + { + Item item = UpdateFrom(0, 10); + Assert.True(item.quality == 0); + Assert.True(item.sellIn == -1); + } - [Fact] - public void AfterSellDate() - { - Item item = UpdateFrom(-10, 10); - Assert.True(item.quality == 0); - Assert.True(item.sellIn == -11); - } - } + [Fact] + public void AfterSellDate() + { + Item item = UpdateFrom(-10, 10); + Assert.True(item.quality == 0); + Assert.True(item.sellIn == -11); + } + } } diff --git a/GildedRose.sln b/GildedRose.sln new file mode 100644 index 0000000..4b8c6fb --- /dev/null +++ b/GildedRose.sln @@ -0,0 +1,28 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.21005.1 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GildedRose", "GildedRose\GildedRose.csproj", "{2DE7D313-9B85-423A-8DC4-0B7EB8099C8C}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GildedRose.Tests", "GildedRose.UnitTests\GildedRose.UnitTests.csproj", "{BFC363EF-36D5-4C3E-8135-8D2635295A2F}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {2DE7D313-9B85-423A-8DC4-0B7EB8099C8C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2DE7D313-9B85-423A-8DC4-0B7EB8099C8C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2DE7D313-9B85-423A-8DC4-0B7EB8099C8C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2DE7D313-9B85-423A-8DC4-0B7EB8099C8C}.Release|Any CPU.Build.0 = Release|Any CPU + {BFC363EF-36D5-4C3E-8135-8D2635295A2F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BFC363EF-36D5-4C3E-8135-8D2635295A2F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BFC363EF-36D5-4C3E-8135-8D2635295A2F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BFC363EF-36D5-4C3E-8135-8D2635295A2F}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/GildedRose.sublime-project b/GildedRose.sublime-project index f58372b..e57ee2b 100644 --- a/GildedRose.sublime-project +++ b/GildedRose.sublime-project @@ -7,5 +7,10 @@ "folder_exclude_patterns": ["bin", "obj", ".nuget", ".OpenIDE", "xunit*"] } ], - "solution_file": "./GildedRose.UnitTests/GildedRose.UnitTests.csproj" + "solution_file": "./GildedRose.sln", + "TestCommands": { + "All": "mono /Users/andrewstewart/Code/GildedRose/xunit.runners.2.0.0-beta5-build2785/tools/xunit.console.exe {{AssemblyPath}}", + "Fixture": "mono /Users/andrewstewart/Code/GildedRose/xunit.runners.2.0.0-beta5-build2785/tools/xunit.console.exe {{AssemblyPath}} -class {{TypeName}}", + "Single": "mono /Users/andrewstewart/Code/GildedRose/xunit.runners.2.0.0-beta5-build2785/tools/xunit.console.exe {{AssemblyPath}} -class {{TypeName}} -method {{MethodName}}" + }, } \ No newline at end of file diff --git a/GildedRose.sublime-workspace b/GildedRose.sublime-workspace index a852923..297321e 100644 --- a/GildedRose.sublime-workspace +++ b/GildedRose.sublime-workspace @@ -3,6 +3,10 @@ { "selected_items": [ + [ + "c", + "Collections" + ], [ "item", "items" @@ -187,27 +191,11 @@ }, "buffers": [ - { - "file": "build.sh", - "settings": - { - "buffer_size": 167, - "line_ending": "Unix" - } - }, - { - "file": "GildedRose/GildedRose.cs", - "settings": - { - "buffer_size": 1750, - "line_ending": "Unix" - } - }, { "file": "GildedRose.sublime-project", "settings": { - "buffer_size": 222, + "buffer_size": 682, "line_ending": "Unix" } }, @@ -215,58 +203,25 @@ "file": "GildedRose.UnitTests/GivenABackstagePass.cs", "settings": { - "buffer_size": 2517, + "buffer_size": 3193, "line_ending": "Unix" } }, { - "file": "GildedRose.UnitTests/GivenAConjuredItem.cs", + "contents": "Package Control Messages\n========================\n\nnpm:\n---\n\n Enhancements\n ============\n Allow multiple packages to be install in one command (#14)\n Use the active text selection as default text when prompting for input (#12)\n Use Package Manager's Messaging feature (tah-DAH!) (#8)\n\n\nOmniSharp:\n---------\n\n ***NOTE*** : If you're on Windows, we are aware of an issue that when upgrading Omnisharp.exe the user is required to close Sublime. You need to ensure Omnisharp.exe is not running and then you can safely open Sublime again. This is because the program is in use and Windows cannot copy over a new version whilst in use. If anyone would like to help us improve this experience please get in touch!\n \n Enhancements:\n \n * Ability to \"Navigate To\", this is similar to Sublime's \"Go to Symbol\" however, this is alphabetical and also shows fields within a class.\n \n", "settings": { - "buffer_size": 1391, - "line_ending": "Unix" + "buffer_size": 881, + "line_ending": "Unix", + "name": "Package Control Messages", + "scratch": true } }, { - "file": "GildedRose.UnitTests/GivenAgedBrie.cs", - "settings": - { - "buffer_size": 1396, - "line_ending": "Unix" - } - }, - { - "file": "GildedRose.UnitTests/GivenANormalItem.cs", - "settings": - { - "buffer_size": 1014, - "line_ending": "Unix" - } - }, - { - "file": "GildedRose.UnitTests/GivenSeveralItems.cs", - "settings": - { - "buffer_size": 539, - "line_ending": "Unix" - } - }, - { - "contents": "using System;\nusing System.Collections.Generic;\nusing Xunit;\n\nnamespace GildedRose.UnitTests\n{\n public class GivenSulfuras {\n\n static String SULFURAS = \"Sulfuras, Hand of Ragnaros\";\n \n private Item UpdateFrom(int initialSellIn, int initialQuality) \n {\n Item item = new Item(SULFURAS, initialSellIn, initialQuality);\n item.\n List items = new List();\n items.Add(item);\n GildedRose.UpdateQuality(items);\n return item;\n }\n\n [Fact]\n public void BeforeSellDate() \n {\n Item item = UpdateFrom(5, 80);\n Assert.True(item.quality == 80);\n Assert.True(item.sellIn == 5);\n }\n\n [Fact]\n public void OnSellDate() \n {\n Item item = UpdateFrom(0, 80);\n Assert.True(item.quality == 80);\n Assert.True(item.sellIn == 0);\n }\n\n [Fact]\n public void AfterSellDate() \n {\n Item item = UpdateFrom(-10, 80);\n Assert.True(item.quality == 80);\n Assert.True(item.sellIn == -10);\n }\n }\n}\n", - "file": "GildedRose.UnitTests/GivenSulfuras.cs", - "file_size": 904, - "file_write_time": 130628944230000000, - "settings": - { - "buffer_size": 913, - "line_ending": "Unix" - } - }, - { - "file": "GildedRose/Item.cs", + "file": "GildedRose/GildedRose.cs", "settings": { - "buffer_size": 708, + "buffer_size": 1751, "line_ending": "Unix" } } @@ -278,12 +233,48 @@ "selected_items": [ [ - "om", - "OmniSharpSublime: ReBuild" + "omni", + "OmniSharpSublime: Run All Tests" ], [ - "omni", - "OmniSharpSublime: Build" + "omno", + "OmniSharpSublime: Goto Definition" + ], + [ + "omna", + "OmniSharpSublime: Go to implementation" + ], + [ + "run tests", + "OmniSharpSublime: Run All Tests" + ], + [ + "reload", + "OmniSharpSublime: Reload Solution" + ], + [ + "on", + "OmniSharpSublime: Run All Tests" + ], + [ + "Omni", + "OmniSharpSublime: Run All Tests" + ], + [ + "Omb", + "OmniSharpSublime: Run All Tests" + ], + [ + "On", + "OmniSharpSublime: Run All Tests" + ], + [ + "pacak", + "Package Control: List Packages" + ], + [ + "om", + "OmniSharpSublime: ReBuild" ], [ "install", @@ -302,7 +293,7 @@ "Package Control: Install Package" ] ], - "width": 475.0 + "width": 457.0 }, "console": { @@ -328,8 +319,18 @@ ], "file_history": [ - "/Users/andrewstewart/Code/GildedRose/GildedRose.UnitTests/build.sh", + "/Users/andrewstewart/Code/GildedRose/GildedRose.UnitTests/GivenANormalItem.cs", "/Users/andrewstewart/Code/GildedRose/GildedRose/Properties/AssemblyInfo.cs", + "/Users/andrewstewart/Library/Application Support/Sublime Text 3/Packages/OmniSharp/PrebuiltOmniSharpServer/config.json", + "/Users/andrewstewart/Code/GildedRose/build.sh", + "/Users/andrewstewart/Code/GildedRose/GildedRose/GildedRose.cs", + "/Users/andrewstewart/Code/GildedRose/GildedRose.UnitTests/GivenABackstagePass.cs", + "/Users/andrewstewart/Code/GildedRose/GildedRose.UnitTests/GivenAConjuredItem.cs", + "/Users/andrewstewart/Code/GildedRose/GildedRose.UnitTests/GivenAgedBrie.cs", + "/Users/andrewstewart/Code/GildedRose/GildedRose.UnitTests/GivenSeveralItems.cs", + "/Users/andrewstewart/Code/GildedRose/GildedRose.UnitTests/GivenSulfuras.cs", + "/Users/andrewstewart/Code/GildedRose/GildedRose/Item.cs", + "/Users/andrewstewart/Code/GildedRose/GildedRose.UnitTests/build.sh", "/Users/andrewstewart/Code/GildedRose/.gitignore", "/Users/andrewstewart/Code/GildedRose/GuildedRose.UnitTests/GuildedRose.UnitTests.csproj", "/Users/andrewstewart/Code/GildedRose/GuildedRose/GildedRose.cs", @@ -340,20 +341,12 @@ "/Users/andrewstewart/Code/GildedRose/GuildedRose.UnitTests/GivenSeveralItems.cs", "/Users/andrewstewart/Code/GildedRose/GuildedRose.UnitTests/GivenSulfuras.cs", "/Users/andrewstewart/Code/GildedRose/GildedRose.sublime-project", - "/Users/andrewstewart/Code/GildedRose/GildedRose.UnitTests/GivenABackstagePass.cs", - "/Users/andrewstewart/Code/GildedRose/GildedRose.UnitTests/GivenAConjuredItem.cs", - "/Users/andrewstewart/Code/GildedRose/GildedRose.UnitTests/GivenAgedBrie.cs", - "/Users/andrewstewart/Code/GildedRose/GildedRose.UnitTests/GivenANormalItem.cs", - "/Users/andrewstewart/Code/GildedRose/GildedRose.UnitTests/GivenSeveralItems.cs", - "/Users/andrewstewart/Code/GildedRose/GildedRose.UnitTests/GivenSulfuras.cs", "/Users/andrewstewart/Code/GildedRose/GildedRose.UnitTests/GuildedRose.UnitTests.csproj", "/Users/andrewstewart/Code/GildedRose/GildedRose.UnitTests/obj/Debug/GuildedRose.UnitTests.csproj.FilesWrittenAbsolute.txt", "/Users/andrewstewart/Code/GildedRose/GildedRose.UnitTests/obj/Debug/GuildedRose.UnitTests.dll.mdb", "/Users/andrewstewart/Code/GildedRose/GildedRose.UnitTests/Properties/AssemblyInfo.cs", "/Users/andrewstewart/Code/GildedRose/GildedRose/bin/Debug/GuildedRose.dll.mdb", - "/Users/andrewstewart/Code/GildedRose/GildedRose/GildedRose.cs", "/Users/andrewstewart/Code/GildedRose/GildedRose/GuildedRose.csproj", - "/Users/andrewstewart/Code/GildedRose/GildedRose/Item.cs", "/Users/andrewstewart/Code/GildedRose/GildedRose/obj/Debug/GuildedRose.csproj.FilesWrittenAbsolute.txt", "/Users/andrewstewart/Code/GildedRose/GildedRose/obj/Debug/GuildedRose.dll.mdb", "/Users/andrewstewart/Code/GildedRose/GildedRose.UnitTests/bin/Debug/GuildedRose.dll.mdb", @@ -435,6 +428,8 @@ "case_sensitive": false, "find_history": [ + "run", + "public", "updateFrom", "{", "{\n", @@ -560,9 +555,7 @@ "saved", "err", "then", - "denodeify", - "findOnePromise", - "pages" + "denodeify" ], "highlight": true, "in_selection": false, @@ -572,7 +565,7 @@ [ "GildedRose" ], - "reverse": false, + "reverse": true, "show_context": true, "use_buffer2": true, "whole_word": false, @@ -581,81 +574,24 @@ "groups": [ { - "selected": 2, + "selected": 0, "sheets": [ { "buffer": 0, - "file": "build.sh", - "semi_transient": false, - "settings": - { - "buffer_size": 167, - "regions": - { - }, - "selection": - [ - [ - 55, - 55 - ] - ], - "settings": - { - "syntax": "Packages/ShellScript/Shell-Unix-Generic.tmLanguage" - }, - "translation.x": 0.0, - "translation.y": 0.0, - "zoom_level": 1.0 - }, - "stack_index": 9, - "type": "text" - }, - { - "buffer": 1, - "file": "GildedRose/GildedRose.cs", - "semi_transient": false, - "settings": - { - "buffer_size": 1750, - "regions": - { - }, - "selection": - [ - [ - 150, - 150 - ] - ], - "settings": - { - "syntax": "Packages/C#/C#.tmLanguage", - "translate_tabs_to_spaces": false - }, - "translation.x": 0.0, - "translation.y": 388.0, - "zoom_level": 1.0 - }, - "stack_index": 1, - "type": "text" - }, - { - "buffer": 2, "file": "GildedRose.sublime-project", "semi_transient": false, "settings": { - "buffer_size": 222, + "buffer_size": 682, "regions": { }, "selection": [ [ - 145, - 145 + 185, + 185 ] ], "settings": @@ -670,189 +606,78 @@ "type": "text" }, { - "buffer": 3, + "buffer": 1, "file": "GildedRose.UnitTests/GivenABackstagePass.cs", "semi_transient": false, "settings": { - "buffer_size": 2517, + "buffer_size": 3193, "regions": { }, "selection": [ [ - 282, - 282 + 754, + 754 ] ], "settings": { "syntax": "Packages/C#/C#.tmLanguage", - "translate_tabs_to_spaces": false + "tab_size": 4, + "translate_tabs_to_spaces": true }, "translation.x": 0.0, "translation.y": 0.0, "zoom_level": 1.0 }, - "stack_index": 8, - "type": "text" - }, - { - "buffer": 4, - "file": "GildedRose.UnitTests/GivenAConjuredItem.cs", - "semi_transient": false, - "settings": - { - "buffer_size": 1391, - "regions": - { - }, - "selection": - [ - [ - 1091, - 1091 - ], - [ - 1245, - 1245 - ] - ], - "settings": - { - "syntax": "Packages/C#/C#.tmLanguage", - "translate_tabs_to_spaces": false - }, - "translation.x": 0.0, - "translation.y": 0.0, - "zoom_level": 1.0 - }, - "stack_index": 7, - "type": "text" - }, - { - "buffer": 5, - "file": "GildedRose.UnitTests/GivenAgedBrie.cs", - "semi_transient": false, - "settings": - { - "buffer_size": 1396, - "regions": - { - }, - "selection": - [ - [ - 1088, - 1088 - ], - [ - 1245, - 1245 - ] - ], - "settings": - { - "syntax": "Packages/C#/C#.tmLanguage", - "translate_tabs_to_spaces": false - }, - "translation.x": 0.0, - "translation.y": 157.0, - "zoom_level": 1.0 - }, - "stack_index": 6, - "type": "text" - }, - { - "buffer": 6, - "file": "GildedRose.UnitTests/GivenANormalItem.cs", - "semi_transient": false, - "settings": - { - "buffer_size": 1014, - "regions": - { - }, - "selection": - [ - [ - 194, - 194 - ], - [ - 495, - 495 - ], - [ - 644, - 644 - ], - [ - 797, - 797 - ], - [ - 953, - 953 - ] - ], - "settings": - { - "syntax": "Packages/C#/C#.tmLanguage", - "translate_tabs_to_spaces": false - }, - "translation.x": 0.0, - "translation.y": 0.0, - "zoom_level": 1.0 - }, - "stack_index": 5, + "stack_index": 1, "type": "text" }, { - "buffer": 7, - "file": "GildedRose.UnitTests/GivenSeveralItems.cs", + "buffer": 2, "semi_transient": false, "settings": { - "buffer_size": 539, + "buffer_size": 881, "regions": { }, "selection": [ [ - 412, - 412 + 151, + 151 ] ], "settings": { - "syntax": "Packages/C#/C#.tmLanguage", - "translate_tabs_to_spaces": false + "syntax": "Packages/Text/Plain text.tmLanguage", + "word_wrap": true }, "translation.x": 0.0, "translation.y": 0.0, "zoom_level": 1.0 }, - "stack_index": 4, + "stack_index": 2, "type": "text" }, { - "buffer": 8, - "file": "GildedRose.UnitTests/GivenSulfuras.cs", + "buffer": 3, + "file": "GildedRose/GildedRose.cs", "semi_transient": false, "settings": { - "buffer_size": 913, + "buffer_size": 1751, "regions": { }, "selection": [ [ - 330, - 330 + 189, + 189 ] ], "settings": @@ -866,42 +691,13 @@ }, "stack_index": 3, "type": "text" - }, - { - "buffer": 9, - "file": "GildedRose/Item.cs", - "semi_transient": false, - "settings": - { - "buffer_size": 708, - "regions": - { - }, - "selection": - [ - [ - 0, - 0 - ] - ], - "settings": - { - "syntax": "Packages/C#/C#.tmLanguage", - "translate_tabs_to_spaces": false - }, - "translation.x": 0.0, - "translation.y": 0.0, - "zoom_level": 1.0 - }, - "stack_index": 2, - "type": "text" } ] } ], "incremental_find": { - "height": 23.0 + "height": 38.0 }, "input": { @@ -1054,11 +850,11 @@ }, "select_symbol": { - "height": 0.0, + "height": 400.0, "selected_items": [ ], - "width": 0.0 + "width": 400.0 }, "selected_group": 0, "settings": diff --git a/GildedRose/GildedRose.cs b/GildedRose/GildedRose.cs index 76c4c69..ad1ff28 100644 --- a/GildedRose/GildedRose.cs +++ b/GildedRose/GildedRose.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Linq; + namespace GildedRose { public class GildedRose diff --git a/GildedRose/GildedRose.csproj b/GildedRose/GildedRose.csproj index f8d04b8..0fc0de7 100644 --- a/GildedRose/GildedRose.csproj +++ b/GildedRose/GildedRose.csproj @@ -1,50 +1,48 @@ - - - - Debug - AnyCPU - 8.0.30703 - 2.0 - {cb41ef38-823f-11e4-be41-3c15c2bea220} - Library - Properties - GildedRose - GildedRose - v4.0 - 512 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - + + + + Debug + AnyCPU + {2DE7D313-9B85-423A-8DC4-0B7EB8099C8C} + Library + Properties + GildedRose + GildedRose + v4.0 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + \ No newline at end of file diff --git a/GildedRose/Properties/AssemblyInfo.cs b/GildedRose/Properties/AssemblyInfo.cs index 4a339ac..6e85cd6 100644 --- a/GildedRose/Properties/AssemblyInfo.cs +++ b/GildedRose/Properties/AssemblyInfo.cs @@ -1,36 +1,36 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("GuildedRose")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("GuildedRose")] -[assembly: AssemblyCopyright("Copyright © 2013")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("cb454994-823f-11e4-b385-3c15c2bea220")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("test")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("test")] +[assembly: AssemblyCopyright("Copyright © 2014")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("be67b357-c7ff-40a4-8e2e-5930299f911b")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")]