mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 02:06:36 +02:00
Spelling - remaining code changes (#3963)
* spelling: commit * spelling: exclusion * spelling: initial * spelling: occurred * spelling: programmatically * spelling: should * spelling: successfully * spelling: committed * spelling: directly
This commit is contained in:
@@ -158,15 +158,15 @@ namespace UnitTests_SvgPreviewHandler
|
||||
svgPreviewControl.DoPreview(mockStream.Object);
|
||||
var textBox = svgPreviewControl.Controls[0] as RichTextBox;
|
||||
var incrementParentControlWidth = 5;
|
||||
var intialParentWidth = svgPreviewControl.Width;
|
||||
var intitialTextBoxWidth = textBox.Width;
|
||||
var finalParentWidth = intialParentWidth + incrementParentControlWidth;
|
||||
var initialParentWidth = svgPreviewControl.Width;
|
||||
var initialTextBoxWidth = textBox.Width;
|
||||
var finalParentWidth = initialParentWidth + incrementParentControlWidth;
|
||||
|
||||
// Act
|
||||
svgPreviewControl.Width += incrementParentControlWidth;
|
||||
|
||||
// Assert
|
||||
Assert.AreEqual(intialParentWidth, intitialTextBoxWidth);
|
||||
Assert.AreEqual(initialParentWidth, initialTextBoxWidth);
|
||||
Assert.AreEqual(finalParentWidth, textBox.Width);
|
||||
}
|
||||
}
|
||||
@@ -226,15 +226,15 @@ namespace UnitTests_SvgPreviewHandler
|
||||
svgPreviewControl.DoPreview(GetMockStream(svgBuilder.ToString()));
|
||||
var textBox = svgPreviewControl.Controls[0] as RichTextBox;
|
||||
var incrementParentControlWidth = 5;
|
||||
var intialParentWidth = svgPreviewControl.Width;
|
||||
var intitialTextBoxWidth = textBox.Width;
|
||||
var finalParentWidth = intialParentWidth + incrementParentControlWidth;
|
||||
var initialParentWidth = svgPreviewControl.Width;
|
||||
var initialTextBoxWidth = textBox.Width;
|
||||
var finalParentWidth = initialParentWidth + incrementParentControlWidth;
|
||||
|
||||
// Act
|
||||
svgPreviewControl.Width += incrementParentControlWidth;
|
||||
|
||||
// Assert
|
||||
Assert.AreEqual(intialParentWidth, intitialTextBoxWidth);
|
||||
Assert.AreEqual(initialParentWidth, initialTextBoxWidth);
|
||||
Assert.AreEqual(finalParentWidth, textBox.Width);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace UnitTests_SvgPreviewHandler
|
||||
public class SvgPreviewHandlerHelperTests
|
||||
{
|
||||
[TestMethod]
|
||||
public void CheckBlockedElements_ShoudReturnTrue_IfABlockedElementIsPresent()
|
||||
public void CheckBlockedElements_ShouldReturnTrue_IfABlockedElementIsPresent()
|
||||
{
|
||||
// Arrange
|
||||
var svgBuilder = new StringBuilder();
|
||||
@@ -29,7 +29,7 @@ namespace UnitTests_SvgPreviewHandler
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void CheckBlockedElements_ShoudReturnTrue_IfBlockedElementsIsPresentInNestedLevel()
|
||||
public void CheckBlockedElements_ShouldReturnTrue_IfBlockedElementsIsPresentInNestedLevel()
|
||||
{
|
||||
// Arrange
|
||||
var svgBuilder = new StringBuilder();
|
||||
@@ -48,7 +48,7 @@ namespace UnitTests_SvgPreviewHandler
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void CheckBlockedElements_ShoudReturnTrue_IfMultipleBlockedElementsArePresent()
|
||||
public void CheckBlockedElements_ShouldReturnTrue_IfMultipleBlockedElementsArePresent()
|
||||
{
|
||||
// Arrange
|
||||
var svgBuilder = new StringBuilder();
|
||||
@@ -66,7 +66,7 @@ namespace UnitTests_SvgPreviewHandler
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void CheckBlockedElements_ShoudReturnFalse_IfNoBlockedElementsArePresent()
|
||||
public void CheckBlockedElements_ShouldReturnFalse_IfNoBlockedElementsArePresent()
|
||||
{
|
||||
// Arrange
|
||||
var svgBuilder = new StringBuilder();
|
||||
@@ -87,7 +87,7 @@ namespace UnitTests_SvgPreviewHandler
|
||||
[DataRow("")]
|
||||
[DataRow(" ")]
|
||||
[DataRow(null)]
|
||||
public void CheckBlockedElements_ShoudReturnFalse_IfSvgDataIsNullOrWhiteSpaces(string svgData)
|
||||
public void CheckBlockedElements_ShouldReturnFalse_IfSvgDataIsNullOrWhiteSpaces(string svgData)
|
||||
{
|
||||
// Arrange
|
||||
bool foundFilteredElement;
|
||||
|
||||
Reference in New Issue
Block a user