From 66d244aafc66434dd5b0d42fe00d0d50dfe7d227 Mon Sep 17 00:00:00 2001 From: "N. Taylor Mullen" Date: Fri, 22 Dec 2017 14:33:08 -0800 Subject: [PATCH] Make unit test work on linux --- .../DefaultRazorIndentationFactsServiceTest.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/Microsoft.VisualStudio.Editor.Razor.Test/DefaultRazorIndentationFactsServiceTest.cs b/test/Microsoft.VisualStudio.Editor.Razor.Test/DefaultRazorIndentationFactsServiceTest.cs index ad5c50b9a6..2e69976371 100644 --- a/test/Microsoft.VisualStudio.Editor.Razor.Test/DefaultRazorIndentationFactsServiceTest.cs +++ b/test/Microsoft.VisualStudio.Editor.Razor.Test/DefaultRazorIndentationFactsServiceTest.cs @@ -1,6 +1,7 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +using System; using System.Collections.Generic; using System.Linq; using Microsoft.AspNetCore.Razor.Language; @@ -25,7 +26,7 @@ namespace Microsoft.VisualStudio.Editor.Razor var previousLineEndIndex = DefaultRazorIndentationFactsService.GetPreviousLineEndIndex(textSnapshot, line); // Assert - Assert.Equal(26, previousLineEndIndex); + Assert.Equal(24 + Environment.NewLine.Length, previousLineEndIndex); } [Fact]