Establishes the foundational structure, core Excel functionality, and tooling. - Implements base components for cells, ranges, columns, and rows. - Integrates a custom calculation engine with a wide range of Excel functions. - Adds comprehensive support for styling, conditional formatting, data validation, comments, pictures, and charts. - Configures build setup, project metadata (NuGet), and developer guidelines. - Includes editor and Git attributes for consistent code style and line endings.
88 lines
2.2 KiB
C#
88 lines
2.2 KiB
C#
using ClosedXML_Examples.Styles;
|
|
using NUnit.Framework;
|
|
|
|
namespace ClosedXML_Tests.Examples
|
|
{
|
|
[TestFixture]
|
|
public class StylesTests
|
|
{
|
|
[Test]
|
|
public void DefaultStyles()
|
|
{
|
|
TestHelper.RunTestExample<DefaultStyles>(@"Styles\DefaultStyles.xlsx");
|
|
}
|
|
|
|
[Test]
|
|
public void PurpleWorksheet()
|
|
{
|
|
TestHelper.RunTestExample<PurpleWorksheet>(@"Styles\PurpleWorksheet.xlsx");
|
|
}
|
|
|
|
[Test]
|
|
public void StyleAlignment()
|
|
{
|
|
TestHelper.RunTestExample<StyleAlignment>(@"Styles\StyleAlignment.xlsx");
|
|
}
|
|
|
|
[Test]
|
|
public void StyleBorder()
|
|
{
|
|
TestHelper.RunTestExample<StyleBorder>(@"Styles\StyleBorder.xlsx");
|
|
}
|
|
|
|
[Test]
|
|
public void StyleFill()
|
|
{
|
|
TestHelper.RunTestExample<StyleFill>(@"Styles\StyleFill.xlsx");
|
|
}
|
|
|
|
[Test]
|
|
public void StyleFont()
|
|
{
|
|
TestHelper.RunTestExample<StyleFont>(@"Styles\StyleFont.xlsx");
|
|
}
|
|
|
|
[Test]
|
|
public void StyleNumberFormat()
|
|
{
|
|
TestHelper.RunTestExample<StyleNumberFormat>(@"Styles\StyleNumberFormat.xlsx");
|
|
}
|
|
|
|
[Test]
|
|
public void StyleIncludeQuotePrefix()
|
|
{
|
|
TestHelper.RunTestExample<StyleIncludeQuotePrefix>(@"Styles\StyleIncludeQuotePrefix.xlsx");
|
|
}
|
|
|
|
[Test]
|
|
public void StyleRowsColumns()
|
|
{
|
|
TestHelper.RunTestExample<StyleRowsColumns>(@"Styles\StyleRowsColumns.xlsx");
|
|
}
|
|
|
|
[Test]
|
|
public void StyleWorksheet()
|
|
{
|
|
TestHelper.RunTestExample<StyleWorksheet>(@"Styles\StyleWorksheet.xlsx");
|
|
}
|
|
|
|
[Test]
|
|
public void UsingColors()
|
|
{
|
|
TestHelper.RunTestExample<UsingColors>(@"Styles\UsingColors.xlsx");
|
|
}
|
|
|
|
[Test]
|
|
public void UsingPhonetics()
|
|
{
|
|
TestHelper.RunTestExample<UsingPhonetics>(@"Styles\UsingPhonetics.xlsx");
|
|
}
|
|
|
|
[Test]
|
|
public void UsingRichText()
|
|
{
|
|
TestHelper.RunTestExample<UsingRichText>(@"Styles\UsingRichText.xlsx");
|
|
}
|
|
}
|
|
}
|