Make unit test work on linux

This commit is contained in:
N. Taylor Mullen 2017-12-22 14:33:08 -08:00
parent d4994eb4a4
commit 66d244aafc
1 changed files with 2 additions and 1 deletions

View File

@ -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]