Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Deleted test which references a deleted file (breaking build)

  • Loading branch information...
commit 780eca7b2e4d51ca629b10f9ee17e3166d7ca2c5 1 parent d4d45ff
@JakeGinnivan JakeGinnivan authored
View
2  .gitignore
@@ -52,6 +52,8 @@ ipch/
# ReSharper is a .NET coding add-in
_ReSharper*
+# TeamCity is a build server addin for VS
+_TeamCity.*
# NCrunch
.*crunch*.local.xml
View
63 src/MarkPad.Tests/Document/AvalonEditPreviewKeyDownHandlers/CursorLeftRightWithSelectionTests.cs
@@ -1,63 +0,0 @@
-using System.Windows;
-using System.Windows.Input;
-using ICSharpCode.AvalonEdit;
-using MarkPad.Document.EditorBehaviours;
-using MarkPad.Document.Events;
-using Xunit;
-
-namespace MarkPad.Tests.Document.AvalonEditPreviewKeyDownHandlers
-{
- public class CursorLeftRightWithSelectionTests
- {
- public class FakePresentationSource : PresentationSource
- {
- protected override System.Windows.Media.CompositionTarget GetCompositionTargetCore()
- {
- return null;
- }
-
- public override System.Windows.Media.Visual RootVisual { get; set; }
- public override bool IsDisposed { get { return false; } }
- }
-
- KeyEventArgs GetKeyEventArgs(Key key)
- {
- return new KeyEventArgs(Keyboard.PrimaryDevice, new FakePresentationSource(), 0, key)
- {
- RoutedEvent = UIElement.KeyDownEvent
- };
- }
-
- [Fact]
- public void sets_to_left_of_selection_on_cursor_left()
- {
- var editor = new TextEditor
- {
- Text = "this is a test",
- SelectionStart = 3,
- SelectionLength = 5,
- CaretOffset = 8
- };
-
- new CursorLeftRightWithSelection().Handle(new EditorPreviewKeyDownEvent(null, editor, GetKeyEventArgs(Key.Left)));
-
- Assert.Equal(3, editor.CaretOffset);
- }
-
- [Fact]
- public void sets_to_right_of_selection_on_cursor_right()
- {
- var editor = new TextEditor
- {
- Text = "this is a test",
- SelectionStart = 3,
- SelectionLength = 5,
- CaretOffset = 8
- };
-
- new CursorLeftRightWithSelection().Handle(new EditorPreviewKeyDownEvent(null, editor, GetKeyEventArgs(Key.Right)));
-
- Assert.Equal(8, editor.CaretOffset);
- }
- }
-}
View
4 src/MarkPad.Tests/MarkPad.Tests.csproj
@@ -95,7 +95,6 @@
<Compile Include="DocumentSources\SiteContextHelperTests.cs" />
<Compile Include="DocumentSources\SiteItemBaseTests.cs" />
<Compile Include="DocumentSources\TestItem.cs" />
- <Compile Include="Document\AvalonEditPreviewKeyDownHandlers\CursorLeftRightWithSelectionTests.cs" />
<Compile Include="OpenFromWeb\OpenFromWebViewModelTests.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Services\RsdServiceTests.cs" />
@@ -114,6 +113,9 @@
<Name>MarkPad</Name>
</ProjectReference>
</ItemGroup>
+ <ItemGroup>
+ <Folder Include="Document\" />
+ </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)\.nuget\nuget.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Please sign in to comment.
Something went wrong with that request. Please try again.