Skip to content
  •  
  •  
  •  
5 changes: 3 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
root = true

[*]
end_of_line = lf
indent_style = space
trim_trailing_whitespace = true
insert_final_newline = true
Expand All @@ -20,7 +21,6 @@ indent_size = 2
[*.vb]
indent_size = 4
charset = utf-8
end_of_line = lf

###############################
# .NET Coding Conventions #
Expand Down Expand Up @@ -85,4 +85,5 @@ visual_basic_preferred_modifier_order = Partial, Default, Private, Protected, Pu
visual_basic_style_unused_variable_expression_statement_preference = unused_local_variable:suggestion
visual_basic_style_unused_value_assignment_preference = unused_local_variable:suggestion
visual_basic_style_prefer_isnot_expression = true:suggestion
visual_basic_style_prefer_simplified_object_creation = true:suggestion
visual_basic_style_prefer_simplified_object_creation = false:none
dotnet_diagnostic.IDE0090.severity = none
4 changes: 2 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
* text=auto
* text=auto eol=lf

*.sh text eol=lf
*.vb text
*.vb text eol=lf

*.jpg binary
*.png binary
Expand Down
5 changes: 3 additions & 2 deletions exercises/practice/accumulate/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
root = true

[*]
end_of_line = lf
indent_style = space
trim_trailing_whitespace = true
insert_final_newline = true
Expand All @@ -20,7 +21,6 @@ indent_size = 2
[*.vb]
indent_size = 4
charset = utf-8
end_of_line = lf

###############################
# .NET Coding Conventions #
Expand Down Expand Up @@ -85,4 +85,5 @@ visual_basic_preferred_modifier_order = Partial, Default, Private, Protected, Pu
visual_basic_style_unused_variable_expression_statement_preference = unused_local_variable:suggestion
visual_basic_style_unused_value_assignment_preference = unused_local_variable:suggestion
visual_basic_style_prefer_isnot_expression = true:suggestion
visual_basic_style_prefer_simplified_object_creation = true:suggestion
visual_basic_style_prefer_simplified_object_creation = false:none
dotnet_diagnostic.IDE0090.severity = none
2 changes: 1 addition & 1 deletion exercises/practice/accumulate/.meta/Example.vb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Imports System.Runtime.CompilerServices

Module AccumulateExtensions
Friend Module AccumulateExtensions
<Extension>
Public Iterator Function Accumulate(Of T)(collection As IEnumerable(Of T), func As Func(Of T, T)) As IEnumerable(Of T)
For Each item In collection
Expand Down
4 changes: 2 additions & 2 deletions exercises/practice/accumulate/Accumulate.vb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Imports System.Runtime.CompilerServices

Module AccumulateExtensions
Friend Module AccumulateExtensions

End Module
End Module
4 changes: 4 additions & 0 deletions exercises/practice/accumulate/Accumulate.vbproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
</PropertyGroup>

<ItemGroup>
<Import Include="Xunit" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.3.0" />
<PackageReference Include="xunit.v3" Version="3.2.2" />
Expand Down
5 changes: 1 addition & 4 deletions exercises/practice/accumulate/AccumulateTests.vb
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
Imports XUnit


Public Class AccumulateTest
<Fact>
Public Sub EmptyAccumulationProducesEmptyAccumulation()
Expand All @@ -9,7 +6,7 @@ Public Class AccumulateTest

<Fact(Skip:="Remove this Skip property to run this test")>
Public Sub AccumulateSquares()
Assert.Equal({1, 2, 3}.Accumulate(Function(x) x * x),{1, 4, 9})
Assert.Equal({1, 2, 3}.Accumulate(Function(x) x * x), {1, 4, 9})
End Sub

<Fact(Skip:="Remove this Skip property to run this test")>
Expand Down
5 changes: 3 additions & 2 deletions exercises/practice/acronym/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
root = true

[*]
end_of_line = lf
indent_style = space
trim_trailing_whitespace = true
insert_final_newline = true
Expand All @@ -20,7 +21,6 @@ indent_size = 2
[*.vb]
indent_size = 4
charset = utf-8
end_of_line = lf

###############################
# .NET Coding Conventions #
Expand Down Expand Up @@ -85,4 +85,5 @@ visual_basic_preferred_modifier_order = Partial, Default, Private, Protected, Pu
visual_basic_style_unused_variable_expression_statement_preference = unused_local_variable:suggestion
visual_basic_style_unused_value_assignment_preference = unused_local_variable:suggestion
visual_basic_style_prefer_isnot_expression = true:suggestion
visual_basic_style_prefer_simplified_object_creation = true:suggestion
visual_basic_style_prefer_simplified_object_creation = false:none
dotnet_diagnostic.IDE0090.severity = none
2 changes: 0 additions & 2 deletions exercises/practice/acronym/.meta/Example.vb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
Imports System.Collections.Generic
Imports System.Linq
Imports System.Text.RegularExpressions

Public Module Acronym
Expand Down
2 changes: 0 additions & 2 deletions exercises/practice/acronym/Acronym.vb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
Imports System

Public Module Acronym
Public Function Abbreviate(ByVal phrase As String) As String
Throw New NotImplementedException("Please implement this function")
Expand Down
4 changes: 4 additions & 0 deletions exercises/practice/acronym/Acronym.vbproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
</PropertyGroup>

<ItemGroup>
<Import Include="Xunit" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.3.0" />
<PackageReference Include="xunit.v3" Version="3.2.2" />
Expand Down
2 changes: 0 additions & 2 deletions exercises/practice/acronym/AcronymTests.vb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
Imports Xunit

Public Class AcronymTests
<Fact>
Public Sub Basic()
Expand Down
5 changes: 3 additions & 2 deletions exercises/practice/affine-cipher/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
root = true

[*]
end_of_line = lf
indent_style = space
trim_trailing_whitespace = true
insert_final_newline = true
Expand All @@ -20,7 +21,6 @@ indent_size = 2
[*.vb]
indent_size = 4
charset = utf-8
end_of_line = lf

###############################
# .NET Coding Conventions #
Expand Down Expand Up @@ -85,4 +85,5 @@ visual_basic_preferred_modifier_order = Partial, Default, Private, Protected, Pu
visual_basic_style_unused_variable_expression_statement_preference = unused_local_variable:suggestion
visual_basic_style_unused_value_assignment_preference = unused_local_variable:suggestion
visual_basic_style_prefer_isnot_expression = true:suggestion
visual_basic_style_prefer_simplified_object_creation = true:suggestion
visual_basic_style_prefer_simplified_object_creation = false:none
dotnet_diagnostic.IDE0090.severity = none
2 changes: 0 additions & 2 deletions exercises/practice/affine-cipher/.meta/Example.vb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
Imports System
Imports System.Linq
Imports System.Text

Public Module AffineCipher
Expand Down
2 changes: 0 additions & 2 deletions exercises/practice/affine-cipher/AffineCipher.vb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
Imports System

Public Module AffineCipher
Public Function Encode(ByVal plainText As String, ByVal a As Integer, ByVal b As Integer) As String
Throw New NotImplementedException("You need to implement this function.")
Expand Down
4 changes: 4 additions & 0 deletions exercises/practice/affine-cipher/AffineCipher.vbproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
</PropertyGroup>

<ItemGroup>
<Import Include="Xunit" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.3.0" />
<PackageReference Include="xunit.v3" Version="3.2.2" />
Expand Down
3 changes: 0 additions & 3 deletions exercises/practice/affine-cipher/AffineCipherTests.vb
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
Imports System
Imports Xunit

Public Class AffineCipherTests
<Fact>
Public Sub Encode_yes()
Expand Down
5 changes: 3 additions & 2 deletions exercises/practice/all-your-base/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
root = true

[*]
end_of_line = lf
indent_style = space
trim_trailing_whitespace = true
insert_final_newline = true
Expand All @@ -20,7 +21,6 @@ indent_size = 2
[*.vb]
indent_size = 4
charset = utf-8
end_of_line = lf

###############################
# .NET Coding Conventions #
Expand Down Expand Up @@ -85,4 +85,5 @@ visual_basic_preferred_modifier_order = Partial, Default, Private, Protected, Pu
visual_basic_style_unused_variable_expression_statement_preference = unused_local_variable:suggestion
visual_basic_style_unused_value_assignment_preference = unused_local_variable:suggestion
visual_basic_style_prefer_isnot_expression = true:suggestion
visual_basic_style_prefer_simplified_object_creation = true:suggestion
visual_basic_style_prefer_simplified_object_creation = false:none
dotnet_diagnostic.IDE0090.severity = none
3 changes: 0 additions & 3 deletions exercises/practice/all-your-base/.meta/Example.vb
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
Imports System
Imports System.Collections.Generic

Public Module AllYourBase
Public Function Rebase(ByVal inputBase As Integer, ByVal inputDigits As Integer(), ByVal outputBase As Integer) As Integer()
If outputBase <= 1 OrElse inputBase <= 1 Then Throw New ArgumentOutOfRangeException()
Expand Down
5 changes: 1 addition & 4 deletions exercises/practice/all-your-base/AllYourBase.vb
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
Imports System
Imports System.Collections.Generic

Public Module AllYourBase
Public Function Rebase(ByVal inputBase As Integer, ByVal inputDigits As Integer(), ByVal outputBase As Integer) As Integer()
Throw New NotImplementedException("You need to implement this function")
End Function
End Module
End Module
4 changes: 4 additions & 0 deletions exercises/practice/all-your-base/AllYourBase.vbproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
</PropertyGroup>

<ItemGroup>
<Import Include="Xunit" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.3.0" />
<PackageReference Include="xunit.v3" Version="3.2.2" />
Expand Down
4 changes: 1 addition & 3 deletions exercises/practice/all-your-base/AllYourBaseTests.vb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
Imports System
Imports Xunit
Public Class AllYourBaseTests
<Fact>
Public Sub SingleBitOneToDecimal()
Expand Down Expand Up @@ -192,4 +190,4 @@ Public Class AllYourBaseTests
Dim outputBase = -7
Assert.Throws(Of ArgumentOutOfRangeException)(Function() Rebase(inputBase, digits, outputBase))
End Sub
End Class
End Class
5 changes: 3 additions & 2 deletions exercises/practice/allergies/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
root = true

[*]
end_of_line = lf
indent_style = space
trim_trailing_whitespace = true
insert_final_newline = true
Expand All @@ -20,7 +21,6 @@ indent_size = 2
[*.vb]
indent_size = 4
charset = utf-8
end_of_line = lf

###############################
# .NET Coding Conventions #
Expand Down Expand Up @@ -85,4 +85,5 @@ visual_basic_preferred_modifier_order = Partial, Default, Private, Protected, Pu
visual_basic_style_unused_variable_expression_statement_preference = unused_local_variable:suggestion
visual_basic_style_unused_value_assignment_preference = unused_local_variable:suggestion
visual_basic_style_prefer_isnot_expression = true:suggestion
visual_basic_style_prefer_simplified_object_creation = true:suggestion
visual_basic_style_prefer_simplified_object_creation = false:none
dotnet_diagnostic.IDE0090.severity = none
2 changes: 1 addition & 1 deletion exercises/practice/allergies/Allergies.vb
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ Public Class Allergies
Public Function List() As IList(Of String)
Throw New NotImplementedException("You need to implement this function")
End Function
End Class
End Class
4 changes: 4 additions & 0 deletions exercises/practice/allergies/Allergies.vbproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
</PropertyGroup>

<ItemGroup>
<Import Include="Xunit" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.3.0" />
<PackageReference Include="xunit.v3" Version="3.2.2" />
Expand Down
2 changes: 0 additions & 2 deletions exercises/practice/allergies/AllergiesTests.vb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
Imports XUnit

Public Class AllergiesTest
<Fact>
Public Sub NotAllergicToAnythingEggs()
Expand Down
5 changes: 3 additions & 2 deletions exercises/practice/anagram/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
root = true

[*]
end_of_line = lf
indent_style = space
trim_trailing_whitespace = true
insert_final_newline = true
Expand All @@ -20,7 +21,6 @@ indent_size = 2
[*.vb]
indent_size = 4
charset = utf-8
end_of_line = lf

###############################
# .NET Coding Conventions #
Expand Down Expand Up @@ -85,4 +85,5 @@ visual_basic_preferred_modifier_order = Partial, Default, Private, Protected, Pu
visual_basic_style_unused_variable_expression_statement_preference = unused_local_variable:suggestion
visual_basic_style_unused_value_assignment_preference = unused_local_variable:suggestion
visual_basic_style_prefer_isnot_expression = true:suggestion
visual_basic_style_prefer_simplified_object_creation = true:suggestion
visual_basic_style_prefer_simplified_object_creation = false:none
dotnet_diagnostic.IDE0090.severity = none
2 changes: 1 addition & 1 deletion exercises/practice/anagram/Anagram.vb
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ Public Class Anagram
Public Function Match(potentialMatches As String()) As String()
Throw New NotImplementedException("You need to implement this function")
End Function
End Class
End Class
4 changes: 4 additions & 0 deletions exercises/practice/anagram/Anagram.vbproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
</PropertyGroup>

<ItemGroup>
<Import Include="Xunit" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.3.0" />
<PackageReference Include="xunit.v3" Version="3.2.2" />
Expand Down
3 changes: 0 additions & 3 deletions exercises/practice/anagram/AnagramTests.vb
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
Imports XUnit


Public Class AnagramTest
<Fact>
Public Sub NoMatches()
Expand Down
5 changes: 3 additions & 2 deletions exercises/practice/armstrong-numbers/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
root = true

[*]
end_of_line = lf
indent_style = space
trim_trailing_whitespace = true
insert_final_newline = true
Expand All @@ -20,7 +21,6 @@ indent_size = 2
[*.vb]
indent_size = 4
charset = utf-8
end_of_line = lf

###############################
# .NET Coding Conventions #
Expand Down Expand Up @@ -85,4 +85,5 @@ visual_basic_preferred_modifier_order = Partial, Default, Private, Protected, Pu
visual_basic_style_unused_variable_expression_statement_preference = unused_local_variable:suggestion
visual_basic_style_unused_value_assignment_preference = unused_local_variable:suggestion
visual_basic_style_prefer_isnot_expression = true:suggestion
visual_basic_style_prefer_simplified_object_creation = true:suggestion
visual_basic_style_prefer_simplified_object_creation = false:none
dotnet_diagnostic.IDE0090.severity = none
2 changes: 0 additions & 2 deletions exercises/practice/armstrong-numbers/.meta/Example.vb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
Imports System

Public Module ArmstrongNumbers
Public Function IsArmstrongNumber(ByVal number As Integer) As Boolean
Dim numString = number.ToString()
Expand Down
2 changes: 0 additions & 2 deletions exercises/practice/armstrong-numbers/ArmstrongNumbers.vb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
Imports System

Public Module ArmstrongNumbers
Public Function IsArmstrongNumber(ByVal number As Integer) As Boolean
Throw New NotImplementedException("You need to implement this function.")
Expand Down
Loading
Loading